Questions tagged [tvirtualstringtree]

VirtualStringTree is a Delphi component, VirtualTreeview descendant designed to make it easy to show string data.

148 questions
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
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

VirtualStringTree: Search for a text where type is not a String

I would like to implement a search procedure to a VirtualStringTree and I would like to do it by comparing the search text with the text from node and not from the pointer (eg. Data^.Column0) because this is not always as String. Please help me…
REALSOFO
  • 852
  • 9
  • 37
3
votes
1 answer

VirtualStringTree lock column 0

Is it possible to lock column 0 (with node names) in VirtualStringTree during horizontal scrolling like in Excel?
user1762186
  • 190
  • 2
  • 6
  • 16
3
votes
1 answer

How to prevent a certain Virtual StringTree NodeLevel from being dragged?

What I am trying to accomplish I have got a virtual stringtree with sublevel rows that can be expanded by the user. The top hierarchy level of all nodes shall be draggable. But none of the sub node levels shall be. How to test For testing I use the…
3
votes
2 answers

Delphi: Get the edit mode of VirtualStringTree after first click

I would like to edit a cell (node) from the VirtualStringTree directly after I click on the cell (something like a StringGrid with the options goEditing:True and goAlwaysShowEditor:True) I've setup the option of toEditable:True, toEditOnClick:True…
REALSOFO
  • 852
  • 9
  • 37
3
votes
1 answer

VirtualTreeView. How to modify child column width?

My friend is working in Delphi with VirtualTreeView and has next problem: He has two columns with data and childs for every row in first column. Is that possible not changing first column width to set maximum child column width? Legend: Circles…
Artem E
  • 369
  • 1
  • 4
  • 19
3
votes
2 answers

How to incremental search using TVirtualStringTree

I am learning TVirtualStringTree usage and must implement an incremental search. When the user enters characters into a TEdit I want to move the focused node to the first qualifying node in the tree. I'm reading through all the demo and example code…
greymont
  • 39
  • 1
  • 3
3
votes
1 answer

Delphi what is the Ideal method to populate a VirtualStringTree?

So I'm working with Delphi 2010 and it's been a while since I began using the VirtualTreeView (precisely VirtualStringTree)..and it seems that I'm doing something in a wrong way..since things aren't working as I'm expecting. I'm trying to populate…
DZkid
  • 149
  • 1
  • 3
  • 9
3
votes
1 answer

How to remove all nodes from TVirtualStringTree?

How to remove all nodes, including VirtualStringTree descendants, in the event handler closes the form containing VirtualStringTree ?
user1851132
  • 341
  • 1
  • 6
  • 15
3
votes
1 answer

When to redraw VirtualTreeView after OnNewText event?

I use this code to fill VirtualStringTree and allow renaming items: //--------------------------------------------------------------------------- // Structure for the…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
3
votes
1 answer

Virtual TreeView Loop

I would like to go through ALL the roots of a VirtualTreeView and delete them. I don't want to clear it. I get an access violation with this code: var Node : PVirtualNode; begin if VirtualStringTree1.GetFirst = NIL then exit; Node := NIL; …
Ben
  • 3,380
  • 2
  • 44
  • 98