VirtualStringTree is a Delphi component, VirtualTreeview descendant designed to make it easy to show string data.
Questions tagged [tvirtualstringtree]
148 questions
10
votes
1 answer
How do I fill in the area above the scroll bar in a TVirtualStringTree?
I have a need to fill in (with black) the little white square that I've highlighted in the picture below.
I have tried adding extra columns. I have tried expanding the PaintInfo.PaintRectangle. I have tried every setting on the Amount column that…

Nick Hodges
- 16,902
- 11
- 68
- 130
8
votes
1 answer
Delphi: Changing focus after deleting a node from a virtual string tree
I have a component of type TVirtualStringTree (let us call it VST). It has nodes in the form of a list, i.e. all the nodes are at the same level. I want to change a focus after deleting a node (with the DeleteNode method) and I used OnFreeNode…

Chris S
- 151
- 8
8
votes
1 answer
VirtualTreeView - different color of text in the same node
I am attempting to create a view in TVirtualStringTree which will be similar to something like this:
In the above example I have shown some of the possible scenarios I want to reach. FolderA has bold text and after that red-colored unbolded text…

Coder12345
- 3,431
- 3
- 33
- 73
8
votes
1 answer
VirtualStringTree columns should adapt size when one column is hidden
I have a VST with 3 columns that evenly take the available space.
I have set hoAutoSpring in Header.Options, and
all columns have Column[x].Option have coAutoSpring set.
Now I want to be able to hide the last column and maintain that the other…

ralfiii
- 584
- 4
- 13
8
votes
1 answer
Is it possible to use VirtualStringTree for a master detail grid view?
Alright I got something really tricky here...
I would like to DRAW/USE Headers to a ChildNode.
I think the idea is reasonable because it would look amazing to have headers in subnodes so the childnodes can be specified in a table.
Is there a…

Ben
- 3,380
- 2
- 44
- 98
7
votes
0 answers
TVirtualStringTree - How to use my own hint window class for VT columns?
I want to use a custom Hint window class for my entire application.
I use the Application.OnShowHint, analyze the THintInfo, and return my own TMyHintWindow in the HintInfo.HintWindowClass. This works well for all controls but I have a strange…

zig
- 4,524
- 1
- 24
- 68
7
votes
1 answer
TVirtualStringTree: Data changed between OnMeasureItem event and OnGetText event
I have an array holds data will be represented on TVirtualStringTree. This array is thread-safe and lockable. And grown by another thread.
My problem is that, when VST executes OnMeasureItem event to measure height of the node, data used for…

Mehmet Fide
- 1,643
- 1
- 20
- 35
6
votes
2 answers
VirtualStringTree - Embedding Controls In Cells - Control Not Showing
So, my end game here is to have a way to list items (like a TListView in vsReport) with the add/remove buttons inside the client area.
Ex:
|----------------|
|Old Item 1 X |
|Old Item 2 X |
|Add new item... |
| …

ThievingSix
- 1,044
- 1
- 11
- 23
6
votes
2 answers
VirtualStringTree - Correct way to add/handle subnodes/childnodes when using objects?
I am using Delphi2010 and trying to wrap my head around using VirtualStringTree.
I've been trying to get it to work with objects and was having no luck until I followed Philipp Frenzel's Virtual TreeView tutorial which I found on the soft-gems.net…

TheSteven
- 900
- 8
- 23
6
votes
2 answers
How can I hide a TVirtualStringTree node?
if I'm not mistaken it's not possible to have invisible nodes in a
TVirtualStringTree treeview, as there are no enabled, visible or other
properties to do so. Am I right about this?
If yes, how did I manage to have a non visible node?
Structure of…

Markus
- 69
- 1
- 2
6
votes
1 answer
How to set the node height in Tvirtualstringtree
I have set the the height of the FocusedNode using following code
procedure TMainForm.SetheightClick(Sender: TObject);
begin
if Assigned(tree1.FocusedNode) then
Tree1.NodeHeight[Tree1.FocusedNode] := strtointdef(edit8.Text ,50);
end;
I would…

u950321
- 195
- 7
6
votes
2 answers
How to display an icon or image in a column of TVirtualStringTree?
In a Delphi VCL project, I have created a simple TVirtualStringTree with two columns. The first column will contain text identifying the Name of the data being represented. The data record also contains a status field. The second column is…

Ashlar
- 636
- 1
- 10
- 25
6
votes
1 answer
TVirtualStringTree highlight of searching result
I would like to highlight the text from a node of VirtualStringTree according to search criteria like example from bellow:
Any suggestion please?

REALSOFO
- 852
- 9
- 37
6
votes
3 answers
TVirtualStringTree - How to change the [-] / [+] buttons?
How can I use my own custom buttons (images) to replace the default [-]/[+] buttons in the VST?
I want to use arrows instead (, ), but also to support RTL bidi mode (, ).
edit: I am aware of the bsTriangle style (ButtonStyle). It does not respect…

ZigiZ
- 2,480
- 4
- 25
- 41
6
votes
1 answer
How to color blend cells with a background image in VirtualTreeView?
I'm using VT.Background to display a background image in VT with a few columns.
But I can't find a way to use different colors for cells because they hide the background image.
I have tried to use OnBeforeItemErase but if I useEraseAction :=…

ZigiZ
- 2,480
- 4
- 25
- 41