PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
AAFPopupMenuToString (Function)
In french: FAAMenuContextuelVersChaîne
Returns the list of options found in the popup menu actually displayed by the control.
Example
sTout is string = AAFPopupMenuToString(TABLE_SansNom1)
 
FOR EACH STRING sOption OF sTout SÉPARÉE BY CR
sLibellé is string = ExtractString(sOption, 1, TAB)
nID is int = ExtractString(sOption, 2, TAB)
sPos is string = ExtractString(sOption, 3, TAB)
Trace(sLibellé + " - " + nID + " - " + sPos)
END
Syntax
<Result> = AAFPopupMenuToString(<control>)
<Result>: Character string
List of options found in the popup menu of control. This list has the following format:
<Libellé 1> + TAB + <Identifiant 1> + TAB + <Position 1> + RC + ...
+ RC + <Libellé N> + TAB + <Identifiant N> + TAB + <Position N>
where:
  • Libellé: Name of the option.
  • Identifier: Option ID.
    Remark: This identifier can be used by AAFExecute to run the option directly.
  • Position: Option subscript in the menu. If the option is found in a sub-menu, this subscript has the following format:
    <Numéro de l'option principale>.<Numéro de l'option du sous menu>
    For example, "4.5" for the option 5 of sub-menu 4.
<control>: Control name
Name of the control used.
Remarks
  • All options found in the popup menu are taken into account:
    • Options of system menu.
    • Menu options displayed specific to the AAFs (Automatic Application Features).
    • Custom options of popup 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 popup menu of a column is displayed, the function will return the options found in the popup menu of the column.
Component: wd270obj.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment