|
|
|
|
- Overview
- Settings
- Configuring the automatic menu
- Disabling the "Expand all"/"Collapse all" option
AAF: Expanding or collapsing a tree structure (Table or TreeView Table control)
The TreeView and TreeView Table controls give the end user several options via the context menu. One of the options in this context menu is the ability to expand or collapse the entire tree structure of the control. The "Expand all" or "Collapse all" option is used to: - expand all the branches found in the treeview or in the selected hierarchy.
- collapse all the branches found in the treeview or in the selected hierarchy.
Configuring the automatic menu The context menu of the TreeView or TreeView Table control can be disabled. To configure how the context menu associated with the control is displayed: - Display the description window of control.
- Select the "UI" tab.
- Choose the desired menu in the "Context menu" combo box. You can:
- "Display the AAF menu (System)": In this case, the context menu displayed will be the automatic menu of the control. For more details on how to configure this menu, see Configuring the AAF menu.
- "Add a context menu": If this option is checked, you can select the custom context menu to be displayed.
Remarks: - If both options are checked, the custom context menu can be added before or after the AAF menu.
- If no option is selected, no context menu will be selected. The <Disabled> option will be displayed in the description window.
- The ContextMenu property is also used to remove the AAF-specific context menu and restore the standard Windows menu for a given control.
Disabling the "Expand all"/"Collapse all" option In the code, AAFDisable is used to delete some options from the AAF context menu. To disable the "Expand all"/"Collapse all" option, use AAFDisable with the aafExpandCollapseAll constant.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|