ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / AAF functions (Automatic Application Features)
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
AAFContextMenuToString (Function)
In french: FAAMenuContextuelVersChaîne
Warning
From version 28, AAFPopupMenuToString is kept for backward compatibility. This function is replaced by AAFContextMenuToString.
Returns the list of options in the context menu actually displayed by the control.
Example
sAll is string = AAFContextMenuToString(TABLE_NoName1)
 
FOR EACH STRING sOption OF sAll SEPARATED BY CR
sCaption is string = ExtractString(sOption, 1, TAB)
nID is string = ExtractString(sOption, 2, TAB)
sPos is string = ExtractString(sOption, 3, TAB)
Trace(sCaption + " - " + nID + " - " + sPos)
END
Syntax
<Result> = AAFContextMenuToString(<Control>)
<Result>: Character string
List of options in the context menu of control. This list has the following format:
<Caption 1> + TAB + <Identifier 1> + TAB + <Position 1> + CR + ...
+ CR + <Caption N> + TAB + <Identifier N> + TAB + <Position N>
where:
  • Caption: Option caption.
  • Identifier: Option identifier.
    Remark: This identifier can be used by AAFExecute to run the option directly.
  • Position: Option index in the menu. If the option is in a sub-menu, this index has the following format:
    <Number of main option>.<Number of submenu option>
    For example, "4.5" for the option 5 of submenu 4.
<Control>: Control name
Name of the control used.
Remarks
  • All options in the context menu are taken into account:
    • Options of system menu.
    • Menu options displayed specific to the AAFs (Automatic Application Features).
    • Custom options of context menu.
  • Only the clickable options are listed.
  • If the control can display several menus, the last menu displayed is returned.
    For example, on a Table control:
    • By default, the Table control menu options are listed.
    • If the context menu of a column is displayed, the function will return the options in the context menu of the column.
Business / UI classification: UI Code
Component: wd290obj.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/10/2023

Send a report | Local help