To add a popup menu and double-click behavior to a tree view:
1. | Use the Windows Designer catalog to open the window or dialog that contains the Tree View and then select the tree view object. |
2. | If you want one popup menu page for all tree view nodes: |
| Open the Property Inspector for the Tree View and on the General tab page set the Popup Menu Page property to determine which menu to display in case of right mouse clicks. |
| If you want different popup menus for each tree view node: |
| Open the Property Inspector for the Tree View and on the General tab page set the Node-specific Menus property to Yes. |
| For each of the tree view nodes, set the Popup Menu Page property to determine which menu to display in case of right mouse clicks. |
3. | For each of the tree view nodes, set the Double-click Action property to determine which action to perform in case of double-clicks. |
|