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

GetText from TVirtualStringTree is getting triggered more times

Please take a look to bellow code: unit Unit2; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, VirtualTrees, Vcl.StdCtrls; type TTreeData…
REALSOFO
  • 852
  • 9
  • 37
1
vote
0 answers

Icon position in Virtual Treeview

I'm setting the icon in a Virtual Treeview in its OnGetImageIndex event. It works, but the icon is positioned directly at the left edge of the node (x=0). I'd like to move it a little bit to the right, but I can't find any way to do this. An…
CodeX
  • 717
  • 7
  • 23
1
vote
0 answers

Proper add, load and save node with delphi XE8 and VirtualStringTree

I am using a virtualstringtree for basic treeview functionality with checkboxes, etc. I used the original documentation (from 2006) but I am getting errors on loading the data that I save, even though the virtual string tree looks ok. I believe…
1
vote
1 answer

How do i move specific node to the first index?

i am trying to move a node to the top of TVirtualStringTree when i press on a button so first thing i do is search for the node by the following code function Tform1.lookingTreeView(name: String): PVirtualNode; var Node: PVirtualNode; Data:…
1
vote
1 answer

Delphi: Component Build - Associate TVirtualStringTree

I'm building a new component and I would like to add one property where to associate a TVirtualStringTree object. In the bellow picture I indicate and example from a TLabel object with the property FocusControl associated to a TEdit If I do like…
REALSOFO
  • 852
  • 9
  • 37
1
vote
2 answers

How to synchronize scrolling of 2 TVirtualStringTree controls with different heights?

I have 2 TVirtualStringTree (VST) controls, one on top of the other. With TSplitter in between. I use OnScroll of VST1/2 to scroll the other VST2/1 when scrolling the first one: procedure TForm1.VST1Scroll(Sender: TBaseVirtualTree; DeltaX,…
Mike Torrettinni
  • 1,816
  • 2
  • 17
  • 47
1
vote
1 answer

VirtualTreeView n-state checkboxes

I'm obliged to use VirtualStringTree component in C++ Builder (RAD Studio XE5). And I need to provide a possibility to negative-check elements of my tree. For example, let's take a look at the node with no child. I would like to be able to check…
MYriad
  • 118
  • 7
1
vote
1 answer

How to make this code re-usable

I have a specific way to build nodes for Virtual Treeview (I douns this example years ago and never had a reason to change it, until now). As I use almost identical code in around 150 cases, I would like to try and get it re-usable and reduce…
Mike Torrettinni
  • 1,816
  • 2
  • 17
  • 47
1
vote
1 answer

Show file system tree data in TVirtualStringTree

I have such thread safe class for file system objects: type PFSObject = ^TFSObject; TFSObject = class private FMREW: TMREWSync; FChildren: TObjectList; FFilesCount: UInt32; FFoldersCount: UInt32; FName: string; …
1
vote
1 answer

TVirtualStringGrid CopyToClipboard issue Embarcadero Seattle C++

Previously after calling VirtualStringGrid -> CopyToClipBoard, I could paste the grid as tabbed text in notepad or as a fully formatted grid (headers and colour and borders) when pasting into Excel or Outlook. However, I'm experiencing issues with…
1
vote
1 answer

VirtualStringTree with a Default TButton

I have a form with a VirtualStringTree (VST) and a TButton with its default property set to true. The nodes of the VST contain inplace editors (TEdits). The problem is that the button always fires when editing the VST. How can I keep the button as…
TomT
  • 199
  • 1
  • 1
  • 11
1
vote
1 answer

Delphi IDE hangs when I create a thread

I have a problem that Delphi (2010) IDE and the program both hang during debugging when I run a thread. Both windows do not respond. When I kill the program, IDE works again. It took time, I had to delete pieces of my program and I found the…
smooty86
  • 1,112
  • 7
  • 13
1
vote
0 answers

How to move node in VirtualTreeView?

I use Delphi XE5 and created a VirtualTree with several parent and child nodes. When I select a child node and execute the following code: vstSource:= vstTree.FocusedNode; vstTarget:=…
Chris
  • 57
  • 8
1
vote
0 answers

Load different data in the same TVirtualStringTree

In my app I have on main form a tc_main as TTabControl with 4 tabs and a vt_main as TVirtualStringTree stays on it. Depends by the tab selected vt_main may had different header and data inside. For each tab I define a different data…
REALSOFO
  • 852
  • 9
  • 37
1
vote
2 answers

VirtualStringTree - Can't get parent-child nodes to work correctly

I need to render a Main-Menu in a TVirtualStringTree - each menu item has a Category. The Categories will make up the root nodes of the tree, and under each Category root node, will be the menu items. The datasets fields for the Categories and…
Steve F
  • 1,527
  • 1
  • 29
  • 55