Questions tagged [tvirtualstringtree]

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

148 questions
4
votes
1 answer

Color VirtualStringTree rows with hidden nodes

I'm currently using this code in the OnBeforeCellPaint event of my tree: if Node.Index mod 2 = 0 then begin TargetCanvas.Brush.Color := clBlack; TargetCanvas.FillRect(CellRect); end else begin TargetCanvas.Brush.Color := clPurple; …
4
votes
1 answer

VitrtualStringTree. How to Drag'n'Drop to ROOT level?

A have a tree: ROOT - VirtualStringTree(You don't see it, TVirtualStringTree.RootNode) My Root Node 1 My Root Node 2 Second node 1 Second node 2 Second node 3 My Root Node 3 I can Drag'n'Drop "My Root Node 3" to any visible node, but I can't…
4
votes
1 answer

Delphi VirtualStringTree OnMouseEnter and OnMouseLeave

Hello please is there any VirtualStringTree version that contains these 2 Mouse Events : OnMouseEnter and OnMouseLeave ?
Sdean
  • 245
  • 2
  • 5
  • 12
4
votes
2 answers

Edit a root node celltext in VirtualTreeView

I would like to change the cell text of an existing virtual (root) node. I can change the data but I have to refresh the whole TreeView so the GetText get's fired again. Is there an easier way or a possible way to refresh only 1 root node and not…
Ben
  • 3,380
  • 2
  • 44
  • 98
4
votes
1 answer

Incorrectly drawn themed checkbox in TVirtualStringTree

Checkbox handling in version 5.0.0 of VirtualTrees.pas appears broken when toThemeAware is enabled. Nodes that are csUncheckedNormal are drawn as checked + hot. To correctly paint an unchecked, themed checkbox using DrawElement, the Details record…
3
votes
1 answer

How to hide a specific column in a virtual string tree?

How can I hide specific columns in my virtual string tree? I've tried this code: Header.Columns.Items[3].Width := -1; It displays the column, but not the header caption. Why?
Tony
  • 251
  • 3
  • 6
  • 13
3
votes
1 answer

Virtual String Tree 4.8.7 HeaderDblClick Event without function?

I just tried to use the event OnHeaderDblClick of the VirtualStringTree Component (Version 4.8.7) Is it possible, that this event is not working? Or is there some option that I need to set to get it to work?
Michael Küller
  • 3,982
  • 4
  • 22
  • 42
3
votes
1 answer

How not to add duplicate into TVirtualStringTree?

I have two VirtualStringTrees, first VST has been populated with data and I want to check the second VST and add nodes that are not already in the first VST. Or I want to add those nodes from second VST that are not duplicates of first…
Dylan
  • 1,183
  • 4
  • 13
  • 26
3
votes
2 answers

How can I save and load my svTree data structure?

I am trying to implement a simple contact manager using the VirtualStringTree component. I have it set up to look like a list-view component with only three columns that will all contain text: For the data structure, I am using svTree by Linas,…
Shambhala
  • 1,159
  • 3
  • 13
  • 31
3
votes
2 answers

How to modify the focus-box color in TVirtualStringTree?

I need to modify the focus-box's border color of TVirtualStringTree, just like this pic:
Leo
  • 1,947
  • 2
  • 20
  • 37
3
votes
0 answers

How to have both Tooltip and Hint hint modes?

In Windows, if a column is too narrow to show full text, a tooltip appears inline and can show you the missing text: It's important to note that hint window is inline with the text being displayed (i.e. it's not "below" the node). This would be the…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
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

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

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…
1 2
3
9 10