JVCL Help:TJvTreeView.Menu
JVCL Help: TJvTreeView.Menu Property
Search in JVCL Help
Search in all projectsSummary
Specifies a menu that is used as the items of the tree view.
Pascal
propertyMenu: TMenu;
Description
Assign a TMenu (or a descendant, like TMainMenu or TPopupMenu) to the Menu property of the control to make the tree view use the menu's items for its structure.
When a menu is assigned, clicking a node in the tree view has the same effect as clicking the menu item itself (see MenuDblClick for details).
Only menu items with valid captions (all captions except '-' and ) are added to the tree view.
About
Notes
TJvTreeView replaces the OnChange event of the assigned TMenu to be notified about changes in the menu's structure. The original OnChange vent is called automatically (if assigned). If you need to replace the menu's OnChange event at run-time, you should first set Menu to nil, replace the OnChange event and reset the Menu property to its previous value.
Failing to do so can cause errors and even Access Violation exceptions in your program.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page