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
2 answers

How to change TVirtualStringTree Node Icon when that Node is expanded

This sounds like a stupid question but I have tried everything I can think of without success. How can I change the Icon image of a VirtualStringTree Node when that node is expanded. i.e. when Node is collapsed I want to show a closed folder icon…
John Barrat
  • 810
  • 4
  • 15
1
vote
1 answer

How to reference VirtualTree records from one VT to another VT in C++Builder?

Could someone help me with using VirtualTree in C++Builder? I have VT1 with records in it: And VT2 with records in it: I copy values from VT1 to VT2: void __fastcall TForm3::CopyItemsFromVT1ToVT2(TVirtualStringTree *VT_List, PVirtualNode NodeList,…
Radomir23
  • 11
  • 1
1
vote
4 answers

Setting the Index of a Node in VirtualStringTree?

I am trying to change the index of a node, because there are some specific nodes that at all times needs to be at the bottom of my tree. I tried to change the Node.Index, but that did not change anything. So my question is: How do I change the Index…
Jeff
  • 12,085
  • 12
  • 82
  • 152
1
vote
1 answer

VirtualTreeview Nodes, pass them to another form?

My application will be looping thru the Virtual Nodes and check their data. I am using another form to do this than the form containing the VirtualStringTree. (I got my reasons ;) ) My question is: How can I pass those nodes + their data to a…
Jeff
  • 12,085
  • 12
  • 82
  • 152
1
vote
1 answer

Delphi VirtualStringTree - Indenting Problem

Hey S.O! I realized my child nodes are not being indented - they are on the same level as the root nodes. Here's a screenshot: As you see, the childnodes are on the first level's Indent. FixedIndent is OFF, so thats not whats causing it.. Any…
Jeff
  • 12,085
  • 12
  • 82
  • 152
1
vote
1 answer

TVirtualStringTree. How to identify the exact node checked by the user?

My question relates to the issue raised in TVirtualStringTree. How to check a node and its children with a single confirmation? If the options for propagation are enabled and the user checks an internal node, the events OnCheck and OnChecking are…
Chris S
  • 151
  • 8
1
vote
2 answers

Delphi VirtualStringTree Drawing

I have been trying to figure these 2 things out: 1) How do I change the whole row's color in code? Like, when the VT looks like a ListView? 2) How do I make the Checkboxes indent aswell? My child checkboxes and on the same "indent?" as my root…
1
vote
0 answers

Virtual StringTreeView Component primary column editing and selection issue

I have created a Virtual StringTreeview component with multiple columns. Most columns including the primary [0] column are set as coEditable = true. I have a set up a test with 20 nodes. Once started I can successfully edit the primary column for…
Ashlar
  • 636
  • 1
  • 10
  • 25
1
vote
2 answers

Delphi VirtualTreeView Sort Multiple Columns?

I have heard a lot of praise about the VirtualTreeView component and looked at using it in a rewrite we are doing. Currently we use a StringGrid. I can't find a way to sort multiple columns, though single column sorting works great. Is there any…
Alan
  • 11
  • 1
  • 3
1
vote
0 answers

TVirtualStringTree: Check if node in rendered area

I'm trying to find out if a TVirtualStringTree Node is actually being rendered, or outside of the visible tree area altogether. Obviously, this is something entirely different than .Visible. Why do i need this: My AfterCellPaint paints various…
1
vote
2 answers

TVirtuailStringTree text and image Alignment

i am drawing text and image in tvirtuailstringtree as following in onbeforecellpaint event begin Textrectplace := NewRect; Textrectplace.Left := Textrectplace.Left + 2; Textrectplace.Width := 24; Textrectplace.Height :=…
1
vote
1 answer

How to maintain checkstate of items in Devexpress Virtual Treeview?

I have a Treeview created in virtual mode which have 4 levels of nodes and at the page load the root element and first level elements are loaded and rest will be loaded based on dynamically using treeFolderList_VirtualModeCreateChildren event. This…
Pissu Pusa
  • 1,218
  • 3
  • 16
  • 26
1
vote
1 answer

Sorting nodes in VirtualTreeView - OnCompareNodes does not fire for all nodes to be compared

I'm having a (strange) sorting problem with VirtualTreView (v 6.1.0 / Delphi 10 Seattle). I've looked into more recent versions of VTV and there's no mention of a similar behavior. I'll post full source code, but let me first explain what I'm trying…
Torpedo
  • 185
  • 10
1
vote
1 answer

how to draw nodes inline in TvirualTree?

I am currently drawing some images inside Tvirtualdrawtree using on before paint. Here is my drawing code procedure TForm2.VDTAniBeforeCellPaint(Sender: TBaseVirtualTree; TargetCanvas: TCanvas; Node: PVirtualNode; Column: TColumnIndex; …
Vlark.Lopin
  • 762
  • 10
  • 21
1
vote
5 answers

Access violation after TStringEditLink get destroyed (TVirtualStringTree) - Lazarus example

I've try to implement an editor for a VirtualStringTree based on example of Lazarius Can you tell me why did I get an Access Violation after TStringEditLink gets destroyed? It's weired that error appear only when i press ESCAPE or ENTER. If i click…
REALSOFO
  • 852
  • 9
  • 37