|
|
|
|
|
- Overview
- Settings
- Configuring the automatic menu
- Disabling the "Expand all"/"Collapse all" option
FAA: Unfold or fold a tree structure (TreeView control or Hierarchical Table)
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: - Open the control description window.
- Select the "UI" tab.
- Choose the desired menu in the "Context menu" combo box. It is possible to:
- "Display the AAF menu (System)": In this case, the displayed context menu will be the field's automatic menu. 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|