PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Overview
  • Settings
  • Configuring the automatic menu
  • Disabling the "Expand all"/"Collapse all" option
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
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.
Settings

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:
  1. Display the description window of control.
  2. Select the "UI" tab.
  3. Choose the desired menu in the "Popup Menu" combo box. You can:
    • "Display the menu of AAF (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 popup 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 PopupMenu 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 avoid proposing the "Expand all"/"Collapse all" option, use AAFDisable associated with the aafExpandCollapseAll constant.
Minimum version required
  • Version 19
Comments
Click [Add] to post a comment