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

Virtual TreeView hint not showing

I have set ShowHint to true and HintMode to hmToolTip, but my OnGetHint() event handler doesn't even breakpoint when I hover the cursor over the control. Any idea what I am doing wrong? . Additionally, does anyone have any hints as to good…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
2
votes
1 answer

Virtualtreeview dragNdrop

How to copy between two virtualtreeview to copy all columns, not just the first one? before copy: after copy:
MiciMacko
  • 31
  • 2
2
votes
1 answer

VirtualStringTree: Fix node hitbox after OnBeforeCellPaint

I've for a virtualstringtree control on my form which has to display icons from an imagelist for certain nodes. This works fine, however, it also has to display custom drawn icons that are as tall as the node and square, for certain nodes. I'm using…
FHannes
  • 783
  • 7
  • 22
2
votes
2 answers

Is it ever preferable to sort GUI elements instead of sorting the data and have the GUI show the sorted data?

A related question about sorting may be relevant to answering this one. I've realized that VirtualTreeView offers a sorting method of it's own, but it seems to work slower than just sorting through the data itself, and letting the GUI refresh. Is it…
programstinator
  • 1,354
  • 3
  • 12
  • 31
2
votes
2 answers

How to let TVirtualStringTree to display an icon in disabled state?

I need to display files in a directory to a TVirtualStringTree. So, I use SHGetFileInfo to get files' icons. But seems I can only get "normal" icons (Left side on following screen shot). If so, can TVirtualStringTree draw icons as "disabled"? Just…
trudger
  • 917
  • 2
  • 12
  • 20
2
votes
2 answers

VirtualStringTree OnNodeRightClick

I am looking for a procedure or something that gets fired if I right click on a Node (or in general on the VirtualStringTree) I have the following scenario: I have my VST close to a listview. I can only multi select root nodes with the mouse (hold…
Ben
  • 3,380
  • 2
  • 44
  • 98
2
votes
1 answer

VirtualStringTree aligned text and gridlines

I have a virtualstringtree (Gridlines enabled) with X headers and x roots. I would like to add children (at least 1) to the roots that have only 1 text which is in the middle and goes through all the headers (independent). So no matter if I resize…
Ben
  • 3,380
  • 2
  • 44
  • 98
2
votes
1 answer

VirtualStringTree how to free multiple nodes

I have a VirtualStringTree with X roots and X childnodes. Every root has a special NodeData assigned. Every childnode has another NodeData assigned. How do I know OnFreeNode which is which? Cause I can't free the data without knowing which record…
Ben
  • 3,380
  • 2
  • 44
  • 98
2
votes
1 answer

How to change the stateindex of a rootnode in Virtual Treeview?

I have a ImageList assigned in Stateimages of a Virtual Treeview. How can I change the stateindex of a root node? I can't find anything. Thank you for your help.
Ben
  • 3,380
  • 2
  • 44
  • 98
2
votes
2 answers

VirtualTreeView add roots with Threads

I would like to add roots to a VirtualTreeView http://www.delphi-gems.com/index.php/controls/virtual-treeview with a thread like this: function AddRoot ( p : TForm1 ) : Integer; stdcall; begin p.VirtualStringTree1.AddChild(NIL); end; var …
Ben
  • 3,380
  • 2
  • 44
  • 98
2
votes
1 answer

TVirtualStringTree: Scrolling to the bottom two times causes toggling

I have variable height nodes. If scrolled node height is more than VST client area, calling "ScrollIntoView(GetLast, False, False)" function first time does the job perfectly and it jumps to the end of last node which is good. But calling same…
Mehmet Fide
  • 1,643
  • 1
  • 20
  • 35
1
vote
2 answers

Synchronize multiple VirtualStringTrees using 1 copy of data

I have a heirarchy of data that is displayed in a VirtualStringTree. I use this heirarchy multiple times in my application with slight modifications to the way the tree is drawn/displayed. My method currently utilizes the AddChild() procedure for…
Simon
  • 9,197
  • 13
  • 72
  • 115
1
vote
1 answer

VirtualStringTree how to disable alpha blended selection while doing drag and drop?

When drag and dropping items from one TVirtualStringTree to another TVirtualStringTree how do I disable semi-transparent selection block shown while dragging the selection over the destination tree? I've tried all the options and still cannot find…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
1
vote
0 answers

How to add Scrolling to the HierarchicalDataTemplate items inside TreeView?

I want to add scrollviewer to every child inside TreeView. I can add scrollviewer for TreeView but I cannot apply scrollviewer to children elements. Here is my example of the structure what currently using
1
vote
2 answers

VirtualStringTree updating data using cache system

Well, I'm using VirtualStringTree to create kind of a process manager... I run into trouble because of updating the tree with a timer set to 1000ms (cpu usage is too high for my application retrieving a lot of data (filling about 20 columns). So I…
stOrM
  • 103
  • 1
  • 9