ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Automatic Application Features (AAF)
  • Overview
  • Settings
  • Configuring the automatic menu
  • Disabling the "Expand all"/"Collapse all" option
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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. Open the control description window.
  2. Select the "UI" tab.
  3. 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.
Minimum version required
  • Version 19
Comments
Click [Add] to post a comment

Last update: 10/04/2024

Send a report | Local help