ACTION DEFAULTS section
The ACTION DEFAULTS
section defines local
action view default attributes for the form elements.
Syntax
ACTION DEFAULTS
ACTION action-identifier ( action-attribute [,...] )
[...]
END
- action-identifier defines the name of the action.
- action-attribute defines an attribute for the action.
Attributes
ACCELERATOR
, ACCELERATOR2
, ACCELERATOR3
, ACCELERATOR4
, DEFAUTVIEW
, COMMENT
, CONTEXTMENU
, IMAGE
, TEXT
, VALIDATE
.
Usage
The ACTION DEFAULTS
section centralizes action view attributes
(text, comment, image, accelerators) at the form level.
The ACTION DEFAULTS
section must appear in the sequence described in
form file structure.
The ACTION DEFAULTS
section is optional.
The section holds a list of ACTION
elements that specify attributes for
each action. The action is identified by the name following the ACTION
keyword, and
attributes are specified in a list between parenthesis.
The attributes defined in this section are applied to form action views like buttons, toolbar buttons, or topmenu options, if the individual action views do not explicitly define their own attributes.
Action attributes can be defined at different levels, see action configuration for more details.
Example
ACTION DEFAULTS
ACTION accept ( COMMENT="Commit order record changes",
CONTEXTMENU=NO )
ACTION cancel ( TEXT="Stop", IMAGE="stop",
ACCELERATOR=SHIFT-F2, VALIDATE=NO )
ACTION print ( COMMENT="Print order information",
ACCELERATOR=CONTROL-P,
ACCELERATOR2=F5 )
ACTION zoom1 ( COMMENT="Open items list", VALIDATE=NO )
ACTION zoom2 ( COMMENT="Open customers list", VALIDATE=NO )
END