MENU/Action Defaults Interaction

Attributes defined in the form specification file override attributes defined in the .4ad file.

The attributes of the action views for the MENU actions in the custmain.4gl example will be determined as shown in Table 1.

Table 1. custmain.4gl example actions
Action From the form specification file From the default.4ad file From the MENU statement in the .4gl file
find No attributes listed TEXT="Find"

IMAGE="find"

COMMENT="Search"

Overridden by default.4ad
next No attributes listed TEXT="Next"

IMAGE="goforw"

COMMENT="Next record"

Overridden by default.4ad
previous No attributes listed TEXT="Previous"

IMAGE="gorev"

COMMENT="Previous record"

Overridden by default.4ad
close Not listed in the form file attributes are listed in default.4ad but the action view is not displayed on form by default Overridden by default.4ad (predefined action)
quit For both TOPMENU and TOOLBAR, the action view has the attributes TEXT="Quit",

COMMENT="Exit the program",

IMAGE="exit".

Action is not listed in the file Overridden by the form specification file.
accept Not listed in the form file. TEXT="OK"

AcceleratorName="Return"

AcceleratorName2="Enter"

This action is not defined in a MENU instruction (predefined action.)
cancel Not listed in the form file. TEXT="Cancel"

AcceleratorName="Escape"

This action is not defined in a MENU instruction (predefined action.)
Note:

The predefined actions accept and cancel do not have action views defined in the form specification file; by default, they appear on this form as buttons in the right-hand section of the form when the CONSTRUCT statement is active. Their attributes are taken from the default.4ad file.