InsertRecentItemLast
PowerScript function
Description
Inserts a recent menu item as the last item in the application
menu.
Applies to
RibbonApplicationMenu controls
Syntax
|
1 |
controlname.InsertRecentItemLast ( String Text, String Clicked ) |
|
Argument |
Description |
|---|---|
|
controlname |
The RibbonApplicationMenu control in which you want to |
|
Text |
The text that displays in the recent menu item. |
|
Clicked |
The name of the Clicked user event to be bound with the |
Return value
Long.
Returns the position of the item if it succeeds and -1 if an error
occurs. If any argument’s value is null, returns null.
Usage
Only the menu item with the “Recent” type (that is RibbonMenuItem
with ItemType 2) can be added as a recent menu item.
The recent menu can have only one level; and can contain no more
than 9 items.
The user events to be bound with the recent menu item must be
defined correctly according to the requirements of RibbonMenuItem. For
details, see Clicked in PowerScript Reference and Selected in PowerScript Reference.
Examples
This example inserts a recent menu item “RecentItem1” as the last
item and binds it with the “Ue_RecentItem1Clicked” user event.
|
1 2 3 4 |
Long ll_Return RibbonApplicationMenu lr_AppMenu ll_Return = lr_AppMenu.InsertRecentItemLast ("RecentItem1", "Ue_RecentItem1Clicked") |
See also