Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

More than one component for IVTEditLink editor in VirtualTreeView

Is there a way how to add more than one component into VirtualTreeView's IVTEditLink editor ?

like image 353
Knobik Avatar asked Nov 17 '25 06:11

Knobik


1 Answers

I would use a standalone form as an editor container and leave the IVTEditLink concept for this purpose because:

  • if you use e.g. TPanel as an editor component container then you should consider to choose the right Parent of that TPanel; the editor with many fields may overlap either the bounds rectangle of your virtual tree or even bounds of your form
  • it's much more easier to implement OnDeactivate event to a form than to TPanel component
  • you can leave the IVTEditLink concept at all because it looses its sense here; the IVTEditLink was designed for specific node and column editors rather than for the whole nodes; you can simply open the form editor when the OnEditing event arrives, or at double click event etc.

But if I didn't convince you of leaving the IVTEditLink concept for node editing of more than one column then you can check this example for the implementation of a form as an editor for IVTEditLink interface.

like image 80
TLama Avatar answered Nov 20 '25 07:11

TLama