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 in a TreeView control
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
Each TreeView control in a window offers the user a context menu by default..
This menu, available without programming, includes several actions:
  • copy (the element, the row, the column or everything). Copying the column is used to copy the entire content of the treeview branches to the clipboard. The different elements are separated by CR characters (Carriage Return).
  • unfold or fold all: This option unfolds or folds all the elements in the current branch..
  • WINDEV export to Word, Excel, XML: This option exports the contents of the TreeView control to a file in the selected format..
Remarks:
  • The same context menu is available for the treeview section of a TreeView Table.
  • You can add options to this menu from the code. To do so, use the ContextMenu property.
Settings

Configuring the automatic menu in a TreeView control

The context menu of the TreeView control can be disabled. To configure the display of the context menu associated with the TreeView control, you must:
  1. Display the description window of the TreeView control.
  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 context menu displayed will be the TreeView control automation 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.
  • AAFDisable is used to remove some options from the AAF context menu specific to TreeView controls. For example, the aafTableToExcel, aafTableToWord and aafTableToXML constants are used to disable the export features.
Minimum version required
  • Version 16
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help