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
3
votes
6 answers

Tree-like Datastructure (for use with VirtualTreeview)

I have come to the point where I need to stop storing my data in a VCL component, and have an "underlying datastructure", as Mr. Rob Kennedy suggested. First of all, this question is about "how do I make an underlying datastructure". :) My hierachy…
Jeff
  • 12,085
  • 12
  • 82
  • 152
3
votes
1 answer

Delphi VirtualStringTree OnGetHint

I want to show hint when cell text is already fully shown. so, on form's OnCreate procedure TForm1.FormCreate(Sender: TObject); begin VirtualStringTree1.HintMode := hmHint; VirtualStringTree1.ShowHint := True; end; and OnGetHint procedure…
Outdoor
  • 35
  • 1
  • 7
3
votes
1 answer

How to change drop hint (Delphi application) when doing drag-drop from Explorer Shell to Virtual TreeView?

Here's how to accept files from Windows Shell to Virtual TreeView: How do you drag and drop a file from Explorer Shell into a VirtualTreeView control in a Delphi application? Here's how it looks if I set DROPEFFECT_LINK for the Effect parameter in…
Torpedo
  • 185
  • 10
3
votes
1 answer

TVirtualStringTree - How to enable drag when clicked on any area of selected row?

I have a VST with toFullRowSelect (with a few columns). I would like to enable drag & drop on the nodes. The problem is that you can start draging the node/s only if you click direcly on the node caption. if the click was made on the row selection…
zig
  • 4,524
  • 1
  • 24
  • 68
3
votes
1 answer

TVirtualStringTree - How to draw on header columns without using OwnerDraw?

I would like to draw on the TVirtualStringTree header columns but I have a problem. I need the tree columns to use it's "default draw" and add my own graphics on it. If I use hoOwnerDraw with Header.Options and use OnHeaderDraw, I need to completely…
zig
  • 4,524
  • 1
  • 24
  • 68
3
votes
1 answer

How does the TVirtualTreeview editor work?

I am exploring Virtual Treeview in Delphi and ran a sample program where the editor is invoked by pressing F2 beginning the editing process uses the built-in editor in Virtualtreeview (No attached editing component). The text changed, but…
Ashlar
  • 636
  • 1
  • 10
  • 25
3
votes
1 answer

Icons in TVirtualStringTree painted with exception

This is very small project to reproduce the problem (VirtualStringTree version 6.5): type TForm1 = class(TForm) vstTest: TVirtualStringTree; Images: TImageList; procedure FormCreate(Sender: TObject); procedure…
3
votes
1 answer

How do I make a TVirtualStringTree process key presses with a higher precedence?

We've got a certain search form at work that was revamped recently. Its functionality is that of a standard search form: enter a few criteria in some boxes at the top, hit the Search button, and display results in a grid down below. But it was…
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
3
votes
3 answers

Memory Leak using VirtualTreeview and OTL

I had created a small multi threaded application and I am trying to convert it to use OmniThreadLibrary. I am using the Virtualtreeview to display a log and the status/results. The Vst Log only has two columns and the record contains just two string…
Logman
  • 654
  • 1
  • 7
  • 16
3
votes
2 answers

Detect if user get focus of a component by tab or by click

How can I detect if the user enter into a component by tab key or by mouse click? UPDATE 1 In fact is about a TVirtualStringTree which depending by the way is getting focused, it open an custom editor focused on one or another column. UPDATE…
REALSOFO
  • 852
  • 9
  • 37
3
votes
1 answer

TVirtualDrawTree - How to place nodes in one row?

This is follow up to my other question Here. as i have been suggested in comment to ask new question about this subject i have been suggested to draw different images in Row . my goal from the beginning to insert nodes side by side i have been told…
Vlark.Lopin
  • 762
  • 10
  • 21
3
votes
2 answers

how to draw animated level bar in TVirtualStringTree?

I am targeting to draw a custom animated progress bar in VST My goal is drawing a similar result as image below, I tried to do something like this OnBeforeCellPaint: procedure TForm2.VTs1BeforeCellPaint(Sender: TBaseVirtualTree; TargetCanvas:…
Vlark.Lopin
  • 762
  • 10
  • 21
3
votes
1 answer

How to add non-visible Node in VirtualStringTree?

Currently I have this code to add some nodes to a VST function AddVSTStructure(AVST: TCustomVirtualStringTree; ANode: PVirtualNode; AObject: TDATArecord): PVirtualNode; var Data: PUserData; begin Result := AVST.AddChild(ANode); Data :=…
Vlark.Lopin
  • 762
  • 10
  • 21
3
votes
1 answer

How to identify which control is Sender?

I use common procedures for all Virtual Treeviews (TVirtualStringTree) so I only have 1 code to maintain, like for OnClick I use Common_VST_OnClick which all VST controls has set: procedure TForm1.Common_VST_OnClick(Sender: TObject); And to execute…
Mike Torrettinni
  • 1,816
  • 2
  • 17
  • 47
3
votes
2 answers

Does VirtualTreeView manage the memory for the userdata of nodes or can I?

I started playing with VirtualTreeView and it seems from all the web info and documents that VirtualTreeView manages the memory of the user provided data (records if any). One does not have to New() and Dispose() any user data. One only has to tell…
Blurry Sterk
  • 1,595
  • 2
  • 9
  • 18