Questions tagged [virtualtreeview]

Virtual Treeview is free Delphi component written by Mike Lischke.

Home page: http://www.jam-software.de/virtual-treeview/
Code: https://github.com/Virtual-TreeView/Virtual-TreeView/

Virtual Treeview is a tree view control built from ground up. More than a decade of development made it one of the most flexible and advanced tree controls available today. Virtual Treeview starts off with the claim to improve many aspects of existing solutions and introduces some new technologies and principles which were not available before.

As the name already indicates, this control uses a different paradigm for tree management than other controls of this kind. It does not know anything about the data it manages (except its size), not even the captions of a node. Everything is retrieved from the application via events (or descendants via overridden methods).

Virtual Treeview has been carefully designed and thoroughly tested. The control proved its concept as well as everyday fitness already in many commercial products and freeware projects.

309 questions
6
votes
2 answers

How to display an icon or image in a column of TVirtualStringTree?

In a Delphi VCL project, I have created a simple TVirtualStringTree with two columns. The first column will contain text identifying the Name of the data being represented. The data record also contains a status field. The second column is…
Ashlar
  • 636
  • 1
  • 10
  • 25
6
votes
1 answer

The initialization part is not called

I'm maintaining the VirtualTreeView component for Delphi and C++Builder. With Delphi everything is okay but when I compile the packages with the C++Builder the code in the initialization part in the Delphi units is not called. Any ideas?
6
votes
1 answer

TVirtualStringTree highlight of searching result

I would like to highlight the text from a node of VirtualStringTree according to search criteria like example from bellow: Any suggestion please?
REALSOFO
  • 852
  • 9
  • 37
6
votes
1 answer

How can I adjust the indentation of a Virtual TreeView column when auto resizing?

I want to make my columns in a VirtualStringTree to have the same indentation on the left and on the right side of the content when auto sizing a column. Take a look at my sample VST with Header Option hoDblClickResize turned on. In this picture I…
Erik Virtel
  • 810
  • 2
  • 9
  • 27
6
votes
3 answers

TVirtualStringTree - How to change the [-] / [+] buttons?

How can I use my own custom buttons (images) to replace the default [-]/[+] buttons in the VST? I want to use arrows instead (, ), but also to support RTL bidi mode (, ). edit: I am aware of the bsTriangle style (ButtonStyle). It does not respect…
ZigiZ
  • 2,480
  • 4
  • 25
  • 41
6
votes
1 answer

How to color blend cells with a background image in VirtualTreeView?

I'm using VT.Background to display a background image in VT with a few columns. But I can't find a way to use different colors for cells because they hide the background image. I have tried to use OnBeforeItemErase but if I useEraseAction :=…
ZigiZ
  • 2,480
  • 4
  • 25
  • 41
6
votes
1 answer

TVirtualStringTree and vertical Scroll is not working properly

I have learned how to use TVirtualStringTree, and I've found it excellent. I have one custom non-visual list called PackedList which is filled by another thread. And I want to show all list content in TVirtualStringTree at realtime. So I put one…
Mehmet Fide
  • 1,643
  • 1
  • 20
  • 35
5
votes
2 answers

How can Virtual Treeview control be made to always scroll by lines?

The Virtual Treeview scrolls vertically by pixels, unlike the way the standard Delphi grids, TListView and TTreeView (or most of the other such controls that I am aware of) scroll by line and keep a full line visible at the top of the control at all…
mghie
  • 32,028
  • 6
  • 87
  • 129
5
votes
2 answers

How to structure database for quick node access

I am looking for a way to structure database wit VirtualTreeView and SQLite database for quick retrieval of data. With VirtualTreeView there is a OnNodeInit event bu it is not always practical for this purpose. The data is fetched from Usenet…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
5
votes
1 answer

VirtualStringTree CellPaint

Well, I have the following problem: I've painted the tree cells in different colors depending on some boolean…
stOrM
  • 103
  • 1
  • 9
5
votes
1 answer

How best to render an overlay icon on top of basic Delphi TVirtualTreeView node icon

I'm converting a tree view from the standard TTreeView to use TVirtualStringTree. My final challenge is to implement a feature where I need to draw a 'pass/fail' status indicator on top of the known node icon. With TTreeView I used: var R :…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
5
votes
4 answers

What is the best free 3rd Party Tree-implementation for Delphi?

I'm in need of a tree-implementation that I can use with Virtual Treeview, that does not consume too much memory, is easy to use, and as fast as VT (that is, when I store my data in the VT itself) I tried the svTree by Linas - its easy to use,…
Jeff
  • 12,085
  • 12
  • 82
  • 152
5
votes
0 answers

VirtualStringTree - how to get node from absolute index?

Lets say i'm using a VirtualStringTree in virtual mode. I want to indicate that the tree has some nodes: VirtualStringTree1.RootNodeCount := 999983; And since this tree is in virtual mode; all the data management happens in the application and on…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
5
votes
1 answer

Which option affects TVirtualStringTree scrolling into view when a node gets focus?

I have a TVirtualStringTree which is being used in report mode. It has a few columns and a vertical scroll bar, and works fine, except one thing. When the last visible node is focused and I press the Down arrow key, the focus goes out of view, but…
Markus
  • 63
  • 6
5
votes
0 answers

VirtualStringTree - different formats of text in the same multiline node

I have an instance of TVirtualStringTree that formats text of a node in two different ways. The implementation is based on using toShowStaticText in the StringOptions as described in the accepted answer of this question: VirtualTreeView - different…
Wosi
  • 41,986
  • 17
  • 75
  • 82
1 2
3
20 21