The MenuActionItem element is a subelement of the MenuItem element. You can use this subelement to define an action for a menu item (or MenuItem object). You can link this view element to a graphic using the imageSource property.
● disabledImageSource
defines the path to the icon source that is to be displayed if the enabled property is set to false.
● enabled
Indicates whether or not the menu item can be selected.
● hotkey
specifies the key combination that triggers the onAction event. The value is defined as enumeration type WDHotKey.
● imageSource
defines the path to the icon source.
See: Specifying the Image Source
● needsMoreInfo
Adds …
to the text of the menu item to indicate to the user that additional user
input is required after selecting this menu item.
The following screenshot illustrates this property:
● text
Describes the text to be displayed.
● textDirection
Specifies the text direction and allows you to use a MenuActionItem element for texts in languages which require a specific text direction. The textDirection property can be filled with the following values and is represented by the enumeration type WDTextDirection.
The text direction is inherited from the parent element. Therefore, the text direction is identical to the one of the parent element. |
|
The default value for this property is inherit.
● visible
Specifies whether the MenuActionItem is visible.
Name |
Interface |
Type |
Initial Value |
Bindable |
disabledImageSource |
IWDMenuActionItem |
String |
|
bindable |
enabled |
boolean |
true |
bindable |
|
hotkey |
IWDMenuActionItem |
WDHotkey |
none |
not bindable |
imageSource |
IWDMenuActionItem |
String |
|
bindable |
needsMoreInfo |
IWDMenuActionItem |
boolean |
false |
bindable |
text |
IWDMenuActionItem |
String (TranslatableText) |
|
bindable |
textDirection |
IWDMenuActionItem |
WDTextDirection |
inherit |
bindable |
visible |
IWDMenuItem |
boolean |
true |
bindable |
● onAction
This event is triggered when the user selects a MenuActionItem element.