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 String Tree - Display subnode when parent node is hidden

Is there a way to show subnode if the parent node is hidden in the Virtual String Tree ? I have some tasks in the tree structure and I wish to display only tasks which belongs to the current user as the list, but from all levels. What I've done is…
user532231
2
votes
2 answers

TVirtualStringTree ScaleBy Stretch

I'm Trying to get a VST to resize automatically when its Height and Width is changed. I don't have this problem with other placed VCL components, some of them have a Property "Stretch" like TImage, which lets them adjust automatically. The VST…
2
votes
1 answer

VirtualStringTree filtering done right

I'm looking for a quick way to filter nodes in a VirtualStringTree based on a filter rule, especially when the filter rule changes. There is a filter mechanism built in the VST where you can define whether the node is filtered out. My solution right…
dominikkv
  • 216
  • 3
  • 13
2
votes
1 answer

How to drag and drop nodes from TVirtualStringTree into a VCL control with DragType dtOLE?

Is it possible to drag and drop nodes from TVirtualStringTree into a VCL control when the DragType is set to dtOLE (not dtVCL) I have a situation where I need to be able to drag nodes from one VT to another VT (dtOLE works fine), but at the same…
zig
  • 4,524
  • 1
  • 24
  • 68
2
votes
2 answers

How to retrieve selected nodes in VirtualStringTree after selection changed?

I have VST with MultiSelect option enabled. How can I retrieve the list of selected nodes in VirtualStringTree when the selection changes via keyboard events? I tried using the below code in the OnFocusChanged event procedure…
RaelB
  • 3,301
  • 5
  • 35
  • 55
2
votes
1 answer

Ending or Cancelling a Drag Drop Operation in a Delphi Application

I am dragging and dropping email attachments from outlook. The files are dropped into a Virtual Tree View. My import function at the end of the drag over event takes a while to process the files and it freezes the outlook application until the…
2
votes
1 answer

Adding properties to a CollectionItem to a descendant component

I would like to create a descendant component from TVirtualStringTree and to add few more properties to Columns collection. The actual structure of TVirtualStringTree is: + Header (TVTHeader) |+ Columns (TVirtualTreeColumns) |+ CollectionItem…
REALSOFO
  • 852
  • 9
  • 37
2
votes
1 answer

How Can I show my own text when no node is visible

I use a virtualtreeview, and I want to show differents messages into the component, regardless columns, when no node visible. Have you some idea to do this? Thank you.
r038tmp5
  • 105
  • 1
  • 5
2
votes
2 answers

Highlight selection even when tree is not focused

I use simultaneously several TVirtualStringTree on the same form. If a tree has a selected node, but the focus is currently on another tree, the selection is highlighted with a pale gray color. Is there a simple way to have the selection of an…
LeGEC
  • 46,477
  • 5
  • 57
  • 104
2
votes
1 answer

Set node state in a virtual tree

I have created a virtual tree with multiple node and I want to disable some of them. I've seen there's a States property of a node. Which is a property of a type TVirtualNodeStates so I've check what kind of states I can set and apparently…
user5014677
  • 694
  • 6
  • 22
2
votes
1 answer

VirtualTreeView and VCL Styles

i'm using VirtualTreeView (as a grid - in Delphi XE7) in my app and i also chose to use the Carbon VCL style. The problem arise because i need to color some rows according some status on each line, and the font color keep staying white even when i…
2
votes
1 answer

TVirtualStringTree - variable row height optimization

In our application I'm moving from a TStringGrid to TVirtualStringTree component. A lot of data is being displayed (max. 50000 lines and 5 columns). One column contains on or more lines of text. I managed to implement multiline functionality using…
user729103
  • 631
  • 2
  • 10
  • 24
2
votes
1 answer

TVirtualStringTree: What is Column parameter in OnGetText event?

The OnGetText event procedure definition is: TVSTGetTextEvent = procedure (Sender: TBaseVirtualTree; Node: PVirtualNode; Column: TColumnIndex; TextType: TVSTTextType; var CellText: UnicodeString) of object; The documentation CHM help file for this…
Steve F
  • 1,527
  • 1
  • 29
  • 55
2
votes
2 answers

How to use TVirtualStringTree to display multi-line items and "expanded" select item?

I'm looking to create a look similar to the image below (which I know was done using TVirtualStringTree), but I haven't found any example code on how to accomplish this. Anyone knows how I can have multi-line items like on the example below, and…
smartins
  • 3,808
  • 7
  • 42
  • 54
2
votes
1 answer

Is there a way to programmatically select a node in a VirtualTreeView?

I need to select a specific node in VirtualTreeview programmatically, but I don't find any method to do so. Anybody could help with a solution?
Willer Bononi
  • 31
  • 1
  • 4