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

How to stop the sort symbol from hiding when TVirtualTreeView (TVirtualStringTree) header is double clicked

I am using a VirtualStringTree control as a list view and using the sort features. However when I double click the VirtualStringTree header the sort direction symbol hides until I click the header again. Can that behaviour be disabled? Things that I…
Paul H
  • 23
  • 3
2
votes
1 answer

Virtual Treeview (C++ Builder) 2 icons overlap on Windows 7 but not on XP

I have an issue with VirtualTreeView component on Windows 7. I added a TVirtualStringTree and used OnGetImageIndex event to assign ImageIndex which is always in debugger non-zero value. VirtualStringTree uses a TImageList with 16x16 icons as Images…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
2
votes
2 answers

VirtualStringTree - Multiline Nodes and centre text vertically

If a node in a VirtualStringTree is multiline (vsMultiline in Node.States) then how can i centre the text vertically for all columns (except the multiline column) in that node? I have tried using the OnBeforeCellPaint (using TargetCanvas.TextOut())…
Simon
  • 9,197
  • 13
  • 72
  • 115
2
votes
4 answers

Writing data to PVirtualNode without setting each field value manually

Lets say I have this node data record: Type PPerson = ^TPerson; TPerson = record Name: String; Age: Integer; SomeBool: Boolean; end; To populate my VirtualStringTree, I would do this: Procedure AddToTree(Person: TPerson); Var Node:…
Jeff
  • 12,085
  • 12
  • 82
  • 152
2
votes
1 answer

How to update the VirtualStringTree scrollbars?

i am having hard time to fix my problem on VirtualStringTree. I have NodeData which initially added with a Node.NodeHeight or the DefaultNodeHeight. The problem now was I'm going to change each of the NodeHeight into different size. As a result,…
XBasic3000
  • 3,418
  • 5
  • 46
  • 91
2
votes
1 answer

How to refresh Vertical scrollbar in VirtualStringTree?

how to refresh the scrollbar of VirtualStringTree if each nodeheight was changed into different Height. coz, the scroll are still in the same state causing other node cannot be viewed when scrolled. toVariableNodeHeight option will not work? any…
XBasic3000
  • 3,418
  • 5
  • 46
  • 91
2
votes
2 answers

Access Violation when assigning string in InitNode event of TVirtualStringTree

The given code which works without any problems in Delphi 2007. However in Delphi 2009 I am getting an exception. Access violation shows read of address $00000000. The problem exists only when assigning string, it works for numbers. Also, when I…
Wodzu
  • 6,932
  • 10
  • 65
  • 105
2
votes
2 answers

EnumWindows and EnumChildWindows to keep my Treeview updated

I am trying to make a program similar to Winspector Spy. My problem is that I would like my Virtual Treeview to be updated at all times - that is, update it when a window is created, when a window is destroyed, etc. Of course, all external…
Jeff
  • 12,085
  • 12
  • 82
  • 152
2
votes
3 answers

How can I keep the check state of multiple Virtual Tree View nodes in sync?

My tree has 2 levels of nodes - it's a Contact List style tree. My problem is, that I would like to have every contact checked, in all the "Contact Categories". Here is a screenshot of my contact list as it looks now (And yes, I have permission to…
Jeff
  • 12,085
  • 12
  • 82
  • 152
2
votes
2 answers

Delphi 10.x "Cannot resolve unit name" for newly installed library

I encountered the following puzzling situation while installing a third-party library, in this case Virtual Treeview, which I will use as an example herein. After following the installation procedure from INSTALL.txt, the new components appeared in…
gwideman
  • 2,705
  • 1
  • 24
  • 43
2
votes
1 answer

How do I create nodes with transparent backgrounds in a TVirtualDrawTree?

I am deriving a custom control from TVirtualDrawTree and I am overriding the DoPaintBackground event to draw a background gradient effect for the tree view. I am also overriding the DoBeforeItemPaint function so I can custom draw the tree view…
James
  • 80,725
  • 18
  • 167
  • 237
2
votes
1 answer

Virtual TreeView update hint within cell on mouse move

I'm using a TVirtualStringTree as a grid which is working pretty well. I'm using the treeviews hint functionality to show a hint when the user positions the mouse over a cell. I've had to change HintMode to hmHint as I want my hints to appear…
Jamie
  • 3,150
  • 2
  • 26
  • 35
2
votes
1 answer

How to use TVirtualStringTree AccessibleName or implement accessibility?

I can see that TVirtualStringTree has a property called AccessibleName yet, I don't see it working, that is, giving the string which is set to screen reader such as NVDA. What I tried is setting this in the OnGetText event but that doesn't seem to…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
2
votes
2 answers

TVirtualStringTree - setting column cells/nodes Alignment

I have a VirtualStringTree with a Header.Column set to taLeftJustify (default). Is there a way to set the cells/nodes of that column to taRightJustify so that the nodes will be justified to the right, but the header column text will be justified to…
zig
  • 4,524
  • 1
  • 24
  • 68
2
votes
3 answers

Delphi VirtualStringTree - Check for Duplicates?

Yeah, I know I post a lot of questions, but thats because I either need assurance that I am doing it right, what I am doing wrong, or if I am totally clueless, and cant find anything in the documentation. Anyways, I am trying to check for duplicate…
Jeff
  • 12,085
  • 12
  • 82
  • 152