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
2
votes
1 answer

How to determine Line Spacing in pixels from a given font (for TVirtualTreeView)

I would like to determine real font line height based on font taken from system. The font I use is system icon font. Here is my code so far. LOGFONTW lf; ZeroMemory(&lf, sizeof(lf)); // Get icon font size from the system if…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
2
votes
1 answer

Delphi5 Virtual TreeView wanted

Does anyone happen to have a copy of the Virtual TreeView that is Delphi5 compatible? Or does anyone know where it can be downloaded from? Thanks in advance to any responses.
Amel Holic
  • 23
  • 2
2
votes
1 answer

VirtualStringTree - Outside controls not passing TDragObject

When dragging from a control onto the VirtualStringTree if the control has a TDragObject it is expected to use this as the Source in OnDragDrop and OnDragOver but it always returns the component. I believe this is a bug, but is there an alternate…
Hamer
  • 1,354
  • 1
  • 21
  • 34
2
votes
0 answers

How to display Virtual TreeView childs in columns

Is it possible to display virtual treeview node childs in columns (horizontally) without losing Node.Data properties? Ok here is the picture : Normal treeview is on the left image. On the right side of image is two variants of what I want to…
user1762186
  • 190
  • 2
  • 6
  • 16
2
votes
1 answer

Selection doesn't repaint VirtualTreeView

I have problem with repaint selection on VirtualTreeView node. When I change node text on run time and repaint tree or actual focused node - selection frame is not updated. Below screen from test app (XE3, VT Version = 5.2.0) How can I solve this…
robertw
  • 724
  • 7
  • 20
2
votes
2 answers

VirtualTreeview: when to sort children?

I depend on VirtualTreeView to display thousands of items which are bound to change occasionally and when this happens the tree is cleaned and populated again. Sorting is done automatically (toAutoSort flag set) but this has an unwanted effect of…
utku_karatas
  • 6,163
  • 4
  • 40
  • 52
2
votes
1 answer

Corrupted data after saving and loading VirtualStringTree

I'm following this tutorial to the letter for saving and loading my VirtualStringTree: http://wiki.freepascal.org/VirtualTreeview_Example_for_Lazarus My problem now is that when I have saved and loaded, my data is corrupted. Chars are changed and…
Eszee
  • 264
  • 2
  • 14
2
votes
2 answers

Ambiguity between IID_IDropTarget and Virtualtrees::IID_IDropTarget

I'm currently going through a process of refactoring includes to reduce compile time, and I've come across the following compile error: [C++ Error] some_class.cpp(53): E2015 Ambiguity between 'IID_IDropTarget' and 'Virtualtrees::IID_IDropTarget' The…
Seth
  • 8,213
  • 14
  • 71
  • 103
2
votes
1 answer

Incorrect PaintTree behavior in TVirtualStringTree when using poUnbuffered

There seems to be a bug with the PaintTree logic in TVirtualStringTree when using the poUnbuffered option. Only the first node of the tree is visible in the output. I tested using the Minimal VST example and the behavior is identical. When…
Graymatter
  • 6,529
  • 2
  • 30
  • 50
2
votes
1 answer

Virtual StringTree: Text returned by the OnGetHint event handler is not shown in the hint window

I wrote a handler for the OnGetHint event of the Virtual StringTree control, and I'm sure that the hint text is returned, but the hint window is blank, see the screenshot below, what might caused this problem? thank you in advance. The settings of…
Edwin Yip
  • 4,089
  • 4
  • 40
  • 86
2
votes
1 answer

VirtualTreeview enabling and disabling columns

I have a VirtualTreeView which has some columns initially hidden (coVisible is not present). After enabling them (adding coVisible to the column Options) a strange thing happens - column appears but overlaps with previous column. I can fix the…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
2
votes
1 answer

Multiple Check Box/Radio Button in a Node/Row in Virtual String Tree

Is it possible in Virtual String Tree to have a check box(or radio button) in each column? Here is a picture for further info : I tried to attached radio button/check box but is only attached in the first column of the node.
Ago
  • 755
  • 7
  • 28
2
votes
1 answer

Translating WM_MOUSEWHEEL Delphi code to C++ Builder

I have these links with code: WMMouseWheel not working in Delphi How to disable MouseWheel if mouse is not over VirtualTreeView (TVirtualStringTree) Translated it to C++ Builder but it doesn't work: UPDATE: After narrowing the problem down it…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
2
votes
2 answers

Delphi, VirtualStringTree - handling simple text styles (like bbcode)

what would be best way to handle simple text styles like bbcode allowing bold italic etc inside of the text? what I did is dividing the text into parts, each part has assigned style and then I textout each piece, starting from Rect.Left +…
migajek
  • 8,524
  • 15
  • 77
  • 116
2
votes
1 answer

Saving VirtualStringTree Node Data

I am trying to move a project from D6 to D-XE3. I am getting garbage when saving and loading the tree data in the OnSaveNode and OnLoadEvents using version 5.10 of VirtualStringTree. I'm probably not handling Unicode correctly, but there could be…