|
|
|
|
|
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. 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
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|