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

How to make a proper alternate row color on a filtered TVirtualStringTree

Previously I used this VirtualStringTree for showing all of the nodes, and I used the Node.Index to check the odd and even rows inside the OnBeforeCellPaint event. But when I filtered the nodes, I realized that the Node.Index is irrelevant to be…
aurallion
  • 149
  • 1
  • 1
  • 6
4
votes
2 answers

Overlaid images with TVirtualStringTree.OnGetImageIndex

I'd like to display an image from the ImageList1 in the vtTest component as an overlay. I've found many resources on the Internet and here in SO - like this - but I can't get none of them to work properly. I'm sure I'm missing something extremely…
fantaghirocco
  • 4,761
  • 6
  • 38
  • 48
4
votes
1 answer

zoom-in TVirtualStringTree

I want to find the "best way" to zoom-in /zoom-out a TVirtualStringTree. "Zoom-in" means mimic a magnifying glass. "best way" must be understood by using, in priority, properties /methods that are devoted to this in the TVirtualStringTree control.…
4
votes
2 answers

Checkbox in TVirtualStringTree is not updating properly when OnChecking opens a MessageBox

When checking or unchecking the checkbox in the vst, I want to ask for confirmation in some cases. (Un)checking works fine until I open a MessageBox from the OnChecking event handler. When I have shown the MessageBox (and set Allowed to true) the…
Chris
  • 1,508
  • 1
  • 11
  • 30
4
votes
1 answer

Infinite scrolling VirtualTreeView

Is there a way to implement infinite scrolling using virtualtreeview? I'd like to load a set number of database records at a time, and add them to the virtualtreeview when the user scrolls down. But I'm not sure how I would trigger the adding of…
stephenwebber
  • 633
  • 5
  • 16
4
votes
1 answer

How to get notified when the user clicks the header column check box in VirtualTreeView control?

Is there an event notifying about the VirtualTreeView header column check box click? It is the check box highlighted on this picture:
Thiago Dias
  • 121
  • 6
4
votes
1 answer

Skipping / Disabling node in VirtualTreeView

I have 5 nodes in my VirtualStringTree: Node #4 has no caption and should be skipped when the user presses VK_DOWN or VK_UP. It should also not get selected when the user clicks on it. I wrote this code (that works) to skip said node when using the…
ChrisB
  • 2,497
  • 2
  • 24
  • 43
4
votes
4 answers

TVirtualStringTree compatibility between Delphi 7 and Delphi 2010 - 'Parameter lists differ'

I've made a form containing a TVirtualStringTree that works in Delphi 7 and Delphi 2010. I notice that as I move between the two platforms I get the message '...parameter list differ..' on the tree events and that the string type is changing bewteen…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
4
votes
1 answer

Delphi - ListView or similar with owner draw button

How do I do create a listview (or similar) with a button on each line? The button needs to be able to have different text/color on each line as required. I'm sure Virtual Treeview would be perfect for this, but I'm a little lost with…
Brad
  • 2,237
  • 5
  • 41
  • 69
4
votes
1 answer

Color VirtualStringTree rows with hidden nodes

I'm currently using this code in the OnBeforeCellPaint event of my tree: if Node.Index mod 2 = 0 then begin TargetCanvas.Brush.Color := clBlack; TargetCanvas.FillRect(CellRect); end else begin TargetCanvas.Brush.Color := clPurple; …
4
votes
4 answers

Delphi, VirtualStringTree - classes (objects) instead of records

I need to use a class instead of record for VirtualStringTree node. Should I declare it standard (but in this case - tricky) way like that: PNode = ^TNode; TNode = record obj: TMyObject; end; //.. var fNd: PNode; begin fNd:=…
migajek
  • 8,524
  • 15
  • 77
  • 116
4
votes
1 answer

How to drag a file from Virtual TreeView to Windows Explorer

I have a TVirtualStringTree, each node represents a file, what I want to do is to allow a user drag a node to the Windows Explorer or Outlook and the target gets a real file. It seems that I need to implement the OnGetUserClipboardFormats and…
Edwin Yip
  • 4,089
  • 4
  • 40
  • 86
4
votes
3 answers

Export a VirtualStringTree to excel, csv?

Is it possible to export a VirtualStringTree to Excel or CSV? I am using Delphi 2007 and trying to save my VirtualStringTree data records as Excel or CSV format.
sMah
  • 455
  • 2
  • 8
  • 17
4
votes
1 answer

VitrtualStringTree. How to Drag'n'Drop to ROOT level?

A have a tree: ROOT - VirtualStringTree(You don't see it, TVirtualStringTree.RootNode) My Root Node 1 My Root Node 2 Second node 1 Second node 2 Second node 3 My Root Node 3 I can Drag'n'Drop "My Root Node 3" to any visible node, but I can't…
4
votes
1 answer

Delphi VirtualStringTree OnMouseEnter and OnMouseLeave

Hello please is there any VirtualStringTree version that contains these 2 Mouse Events : OnMouseEnter and OnMouseLeave ?
Sdean
  • 245
  • 2
  • 5
  • 12