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 feature that VST has or is it not possible at all?
Thanks for your help.
1. Is there a way to use VirtualTreeView for a master / detail grid view ?
No, there is no such feature available at this time and IMHO won’t be, since that would involve a very big intervention to an existing code.
2. How to create fully functional header for a child node detail grid view ?
Considering few ways, how to simulate header look and behavior for child nodes I’ve found useful to use nested tree views for a detail grid view. This brings you the separateness for your detail data and allows you to minimize the whole simulation to positioning of the nested tree view into a child node’s rectangle.
2.1. Startup project
In the following project I’m trying to show how complicated could be implement such an easy task like the positioning of a control inside of a child node could be (without involving the original VirtualTree code). Take it just as a startup project, not as a final solution.
2.2. Known issues & limitations:
OnExpandedimplementation fires the event before the range and scroll positions are fixed, what makes the code more complicated and with a big weakness – the bounds of a detail tree view are updated after the tree is shown, what can be sometimes visible2.3. Project code
It was written and tested in Delphi 2009 with respect to use in Delphi 7. For commented version of a next code
follow this link:Unit1.pas
Unit1.dfm
2.4. Screenshot