virtualtreeview

Is it possible to have multiple header rows in a virtual string tree?

I have a need for multiple fixed rows for the header of a virtual string view. Something that looks like the effect you get if you set a StringGrid's FixedRows property to a value greater than 1. Is there a way to achieve this? Some searching on the Soft-Gems website and forums led me to a couple of mentions of an AdvancedHeaderDraw meth...

Is it possible to select multiple columns in Virtual Treeview?

I need to add functionality to a copy a rectangular selection of nodes and columns, but I can't find any way to actually select multiple columns in Virtual Treeview (beside toFullRowSelect). Am I just missing something? and if not, is there a descendant out there with grid-like multicolumn select support? ...

NTWaitforMultipleObjects error when freeing DLL in Delphi with TVirtualTreeView

TVirtualTreeview is pretty much awesome, but many times when I close an window referenced by a DLL in my project that has a TVirtualTreeview in it I get the NTWaitForMultipleObjects error. The problem is somewhere deep in TVirtualTreeview and other guys in the office have tried lots of stuff to fix it, I was just wondering if anyone e...

Delphi: TOleControl puts ActiveControl in wrong state?

In Mike Lischke's now defunct Virtual Treeview, there was workaround code added to fix a bug when using a TWebBrowser control on the same form. The problem was that if the user tries to interact with a TOleControl (from which TWebBrowser descends), the first mouse click is eaten. They have to then click again to give the control focus....

How can Virtual Treeview control be made to always scroll by lines?

The Virtual Treeview scrolls vertically by pixels, unlike the way the standard Delphi grids, TListView and TTreeView (or most of the other such controls that I am aware of) scroll by line and keep a full line visible at the top of the control at all times. When I use the cursor keys to navigate, then depending on direction either the fir...

Steps to build Virtual Treeview in Delphi 2010

Just bought Delphi 2010 (having skipped 2009) and I am trying to get my project to compile. However, I am running in to a bunch of problems compiling Virtual Treeview 4.8.5. Can someone outline a fool proof way of compiling and installing Virtual Treeview in Delphi 2010? ...

dynamic icons with the virtual tree component for delphi

Hello, I need to know how to store and load two different icons for each node in the virtual tree component , also the two icons are different in size Thanks ...

Delphi VirtualTreeview.OnAfterItemPaint issue when scrolling?

I'm getting issues drawing using OnAfterItemPaint event when horizontal scrolling is performed. Basically what I want to achieve is the merging of selected cells effect, say for example 1 text for column 1 & 2, another text for column 3 & 4, etc... So far VT doesn't have any support for column merging, so I have to manually draw it. Is...

Devexpress ExpressQuantumTreeList vs. Virtual Treeview ?

From experience, what is the best general purpose tree list for Delphi: Virtual Treeview or Devexpress ExpressQuantumTreeList ? I'm currently using the Virtual Treeview, which is fine for my needs but I'm starting a new project and would like to make sure I opt for the best long-term updated and bug-free component. Any thought or switch...

Delphi, VirtualStringTree - rebuilding tree, restoring state (expanded nodes)

How can I restore state of nodes in VirtualStringTree (which ones were expanded) at tree rebuilding? my application uses VirtualStringTree (one of the best components EVER!). Now, what I need is to rebuild the tree each time the application is started. In most cases however the "new" tree is the same as the one built last time... or at ...

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

Hi, 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 + Canvas.TextWidth(Texts[i-1]). This however is probably quite slow, moreover I have no idea ho...

Virtual Treeview in RADStudio 2007

Hi all, I succesfully built Virtual TreeView under RADStudio 2007 to use it in Delphi project, but I cannot get it to work in C++ projects. Any help highly appreciated!!! ...

How to get hot node coords of TVirtualStringTree?

Hi. I'm trying to paint VirtualStringTree's cell differently when mouse is over it. How can I detect the coords of hot node? I know there's a HotNode property but it returns only Node that is under mouse cursor. I need to get cell coords (X,Y) of that node. ...

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

Hi, 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 the control: AnimationDuration := 0; ClipboardFormats.Clear; ClipboardFormats.Add('...

Multiple Expanding Nodes in Virtual TreeView possible?

I am using a TVirtualStringTree (part of the Virtual TreeView Component) in my Delphi project and I would like to create a view where 2 columns can have children that are expandable/collapsable with [+] sign. In the picture below as sample I would like to have a [+] sign in the Server Column but also in the Image column. The idea is tha...

Virtual StringTree: How to determine if the node text is completely shown?

Hi, When TVirtualStreeTree.HintMode = hmTooltip, the node text will become the hint text when the mouse is hovered over a node and column where the node text is not completely shown. But I have to set HintMode = hmHint, so that I can in the even handler supply various hint text based on the position the current mouse cursor is, and in th...

Export a VirtualStringTree to excel, csv ?

Is it possible to export a VirtualStringTree to Excel or CSV? I am using Delphi 2007 and trying to save my VirtualStringTree data records as Excel or CSV format. ...

Virtual StringTree's hint windows are left out on the screen

Hi, See this screenshot, in the middle it's the small hint windows that are generated by a TVirtualStringTree control and were left out on the screen, these hint windows will remain there until the application exits. the problem happens when the treeview's hint is shown and the mouse leaves quickly to the window next to it. Any idea ab...

Fast scrolling in Delphi's Virtual Treeview

[This is an updated version of a question posted earlier, the previous title was Selecting node by index in Delphi’s Virtual Treeview.] After the better part of a day, I believe I've got the Virtual Treeview component (powerful but complex) working in a simple two table data aware fashion. Now, I'm trying to simply select the 1,512th...

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 line of code it points to is: if (iid == IID_IUnknown || iid == IID_IDropTarget) If...