Automatic action views
Action views can be rendered automatically in some form elements.
Form toolbars and topmenu elements can define specific items, to get automatic rendering of action views, for actions that exist for the current dialog.
In a
TOOLBAR
definition, add an AUTOITEMS (CONTENT=ACTIONS)
element in the definition:TOOLBAR
...
AUTOITEMS (CONTENT=ACTIONS)
...
END
In a
TOPMENU
definition, add an AUTOCOMMANDS (CONTENT=ACTIONS)
element in the definition:TOPMENU
...
GROUP actions (TEXT="Actions")
AUTOCOMMANDS (CONTENT=ACTIONS)
END
...
END
Additionally,
CONTENT=WINDOWS
or CONTENT=PROGRAMS
options can
be used, to respectively get the list of current available windows, or the current running
applications. The end user can then switch between windows and applications from these
options:TOPMENU
...
GROUP windows (TEXT="Windows")
AUTOCOMMANDS (CONTENT=WINDOWS)
END
GROUP programs (TEXT="Programs")
AUTOCOMMANDS (CONTENT=PROGRAMS)
END
...
END
For more details about managing applications and windows, see also Containers for program windows.