company logo

Defining function actions

Function actions are provided via the context class associated with the control invoking the action. Functions that are called as actions do not receive parameters. Action functions are searched in the context class associated with the control and all its base classes. In C++, action functions have to be marked as action (ClassEditor or Designer) or the context class must provide an executeFuntion() method (action interface), which calls the appropriate function. This is not necessary, when implementing actions in OSI or in C# context classes.

The GUI framework provides several default actions. Default action supported depend on control style as edit or list styles. A complete list of default actions is available at topic Default actions.

More details about how to implement action functions and action interfaces are described in Provide context class action interface.