company logo

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));

Return value:  State of function return ( bool  )

A State true indicates, that the function was executed successfully. Otherwise state is false.

Implementation overview

Implementation details

  1. 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.

  2. to list
  3. 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.

  4. to list