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
4
votes
1 answer

TVirtualTreeView with rows of variable height: scrolling artefacts

I am using the VirtualTreeView together with the OnMeasureItem event to display rows of variable size. The problem is that the event seems to be called only if a row is painted (following the virtual paradigm). But this leads to the scrollbar being…
jpfollenius
  • 16,456
  • 10
  • 90
  • 156
4
votes
1 answer

Changing drag cursor in VirtualTreeView

When using VirtualTreeView drag operation by default is [doCopy,doMove]. Move operation is indicated by arrow pointer with small box and Copy operation is indicated by same pointer icon but with added [+] next to it. By default VT uses copy…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
4
votes
2 answers

Edit a root node celltext in VirtualTreeView

I would like to change the cell text of an existing virtual (root) node. I can change the data but I have to refresh the whole TreeView so the GetText get's fired again. Is there an easier way or a possible way to refresh only 1 root node and not…
Ben
  • 3,380
  • 2
  • 44
  • 98
4
votes
1 answer

Incorrectly drawn themed checkbox in TVirtualStringTree

Checkbox handling in version 5.0.0 of VirtualTrees.pas appears broken when toThemeAware is enabled. Nodes that are csUncheckedNormal are drawn as checked + hot. To correctly paint an unchecked, themed checkbox using DrawElement, the Details record…
4
votes
2 answers

VirtualTreeView Finalize in C++ Builder for UnicodeString

I use a VirtualTreeView in C++ Builder and use it with structure like this: struct TVTNodeData { int Index; UnicodeString Caption; } I pre-fill nodes of the tree using loop that has this: TVirtualNode *Node =…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
3
votes
1 answer

How to hide a specific column in a virtual string tree?

How can I hide specific columns in my virtual string tree? I've tried this code: Header.Columns.Items[3].Width := -1; It displays the column, but not the header caption. Why?
Tony
  • 251
  • 3
  • 6
  • 13
3
votes
2 answers

More than one component for IVTEditLink editor in VirtualTreeView

Is there a way how to add more than one component into VirtualTreeView's IVTEditLink editor ?
Knobik
  • 383
  • 8
  • 26
3
votes
1 answer

Virtual String Tree 4.8.7 HeaderDblClick Event without function?

I just tried to use the event OnHeaderDblClick of the VirtualStringTree Component (Version 4.8.7) Is it possible, that this event is not working? Or is there some option that I need to set to get it to work?
Michael Küller
  • 3,982
  • 4
  • 22
  • 42
3
votes
1 answer

How not to add duplicate into TVirtualStringTree?

I have two VirtualStringTrees, first VST has been populated with data and I want to check the second VST and add nodes that are not already in the first VST. Or I want to add those nodes from second VST that are not duplicates of first…
Dylan
  • 1,183
  • 4
  • 13
  • 26
3
votes
2 answers

How can I save and load my svTree data structure?

I am trying to implement a simple contact manager using the VirtualStringTree component. I have it set up to look like a list-view component with only three columns that will all contain text: For the data structure, I am using svTree by Linas,…
Shambhala
  • 1,159
  • 3
  • 13
  • 31
3
votes
1 answer

How to detect if the user is dragging nodes from another virtual treeview?

In the OnDragOver or OnDragDrop events, how to check if the user is dragging nodes of the same Virtual Treeview or of another? DragType is dtVCL
Edwin Yip
  • 4,089
  • 4
  • 40
  • 86
3
votes
2 answers

How to modify the focus-box color in TVirtualStringTree?

I need to modify the focus-box's border color of TVirtualStringTree, just like this pic:
Leo
  • 1,947
  • 2
  • 20
  • 37
3
votes
1 answer

Is it possible to display one object multiple times in a VirtualStringTree?

I realize that I really need to rewrite my programs data structure (not now, but soon, as the deadline is monday), as I am currently using VST (VirtualStringTree) to store my data. What I would like to achieve, is a Contact List structure. The…
Jeff
  • 12,085
  • 12
  • 82
  • 152
3
votes
0 answers

How to have both Tooltip and Hint hint modes?

In Windows, if a column is too narrow to show full text, a tooltip appears inline and can show you the missing text: It's important to note that hint window is inline with the text being displayed (i.e. it's not "below" the node). This would be the…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
3
votes
2 answers

How to select nothing by clicking the empty background?

I have a Virtual Treeview (e.g. TVirtualStringTree). The user can select a row but it would be nice if they could also do the intuitiave thing of clicking "nowhere" to select no row Note: Of course multiselect is off; because they can only…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219