ActionItem :: get - Get action item
The function locates the event action by name or position. When the event action could be located, the function updates the settings for resource and action name and returns true. Properties are returned for the selected action. When the requested action could not be located, the function returns false.
ActionItems items(context); // action items for context
for ( int c=items.count(), int i=0;
i < count;
i++ )
DisplayActionProperties(items.get(i));
A State true indicates, that the function was executed successfully. Otherwise state is false.
Implementation overview
- Get action item by name
ActionItem :: get ( sName ) - Get action item by position
ActionItem :: get ( iPosition )
Implementation details
-
Get action item by name
bool ActionItem  :: get ( odaba::String &sName )
The function locates the action item with the name passed in sName. When no action could be found, the function throws an exception.
- sName
- Resource or entity name
The name refers to a design or GUI resource.
to list
- sName
- Resource or entity name
-
Get action item by position
bool ActionItem  :: get ( int32 iPosition )
The function locates the reaction at a position iPosition. When the position is greater than the number of actions defined for the control, the function throws an exception.
- iPosition
- Position in collection
The position of an entry in a collection or list is the number of the entry in the collection beginning with 0 for the first entry.
to list
- iPosition
- Position in collection