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
1
vote
1 answer

VirtualTreeView Memory Leak with Objects

I'm using the code provided by Cosmin Prund in this post because it fits my needs however I often get memory leak and I could not figure out how to free the node which it's TNode object that contain TObjectList in turn this last can also contain…
S.FATEH
  • 451
  • 8
  • 16
1
vote
0 answers

How to properly handle OnChange event - VirtualStringTree

I already created a record which represents my node data and now, I want handle properly the event OnChange, for every time I click in a different node, it call the events once (not twice, this is my problem). This tree shows a directory's structure…
1
vote
1 answer

How to solve this TVirtualStringTree Onheaderclick incompatible parameter?

I tested TVirtualStringTree (version 4.8.7) by Mike Lischke on Delphi 7.0 Windows XP 2. It works fine. I installed the same TVirtualStringTree (v.4.8.7) on another machine (Delphi 7.0 Windows XP 3 system) and tested that same project on the Windows…
warren
  • 25
  • 2
1
vote
1 answer

TVirtualTreeview sorting issue

I have a TVirtualTreeview in my application (still D2007 based) which sets RootNodeCount to the desired value and in OnInitNode event I assign an Object to the node which is otherwise being stored in a TObjectList in my busines logic class. The…
Markus
  • 63
  • 6
1
vote
1 answer

Is there any trade-offs by using classes objects instead of records in VirtualStringTree?

Regarding: Delphi, VirtualStringTree - classes (objects) instead of records Does the memory increases or something? PS: I am using Delphi 2007.
Luis Carrasco
  • 467
  • 3
  • 10
1
vote
1 answer

TVirtualStringTree: How to get edited text?

I'm editing the 2nd column of a displayed node in the TVirtualStringTree. However after the edit is complete it I'm unable to retrieve the text using Sender.GetNodeData(Node) - it contains no text. How can I get the text in the OnEdited event? Is…
Steve F
  • 1,527
  • 1
  • 29
  • 55
1
vote
1 answer

How to assign data to node of VirtualStringTree in InitNode event

I am not sure how to assign data to a node in a VirtualStringTree. I'm need to assign a pointer to a record object to the Node's Data property in the tree control's InitNode event. However I'm getting a 'Pointer type required' compile-time…
Steve F
  • 1,527
  • 1
  • 29
  • 55
1
vote
1 answer

TVirtualStringTree Draw node own image/icon in tree

I'm need to draw some graphics as node image. Like it draws images from ImageList in OnGetImageIndex event, but from the single source like TIcon, TImage, TBitmap. In my situation all nodes have it own icons and places in UserData record. How I can…
AlexLL
  • 165
  • 1
  • 13
1
vote
0 answers

How to play animated GIF on the node of VirtualStringTree?

It's possible to play some animated GIF node image in TVirtualStringTree? So that is my question. How to do that?
AlexLL
  • 165
  • 1
  • 13
1
vote
2 answers

Virtual StringTree's hint windows are left out on the screen

See this screenshot, in the middle it's the small hint windows that are generated by a TVirtualStringTree control and were left out on the screen, these hint windows will remain there until the application exits. the problem happens when the…
Edwin Yip
  • 4,089
  • 4
  • 40
  • 86
1
vote
1 answer

TVirtaulStringTree - How to trigger FocusChanged on "idle"?

Let me try to explain my situation: I'm using VirtualTree as a grid, and every time when the OnFocusChanged event is fired, and the active focus node was changed, I have a synchronous operation which may take 0-1 sec which blocks the main Thread…
ZigiZ
  • 2,480
  • 4
  • 25
  • 41
1
vote
1 answer

First node stays on top

I want the first node to stay on top and should not be affected during scroll. The first node will be like a column header(stays on top even scrolling). How can I do that? This kind of behavior is something you can currently find in…
Ago
  • 755
  • 7
  • 28
1
vote
1 answer

How to fix EStackOverflow in VirtualTreeView?

Sometimes I got EStackOverflow exception in my project. I use Delphi 2010 and latest version of VirtualTreeView. Report generated by Eurekalog contains infinite loop like this: (this is a part of "Call stack" section of bugreport) SetNodeHeight …
1
vote
0 answers

How to get folder name when dragging from Windows Explorer to Virtualtreeview in Delphi

I have a delphi form with a VirtualStringTree and a ComboBox (as shown below) As shown in the image above..I need to get the folder name that I'm trying to drag from the Windows Explorer & drop on the VirtualStringTree (& I don't know how to do the…
DZkid
  • 149
  • 1
  • 3
  • 9
1
vote
1 answer

How to build hierarchy by filenames list in delphi, virtualstringtree

I have stuck with this problem. I have a list of filenames from an archive (here are files and folders). This list looks like this : folder folder/index.html otherfolder The problem is to make the hierarchy into the virtualstringtree. Files and…
Dan Godiac
  • 11
  • 1