SHOW/HIDE OPTION instruction
The SHOW OPTION
instruction will show/enable action views corresponding to the
listed menu options. The default action
views are made visible and the explicit action views (BUTTON
in form) are enabled. The HIDE
OPTION
instruction will hide default action views and disable explicit action views.
{
HIDE |
SHOW }
OPTION
{
ALL
|
option-name [
,...]
}
Use the ALL
keyword reference all menu options. In a menu that contains many
options, you typically do a HIDE OPTIONS ALL
followed by HIDE
OPTION
to show a subset of the menu options.
MENU "Customers"
BEFORE MENU
HIDE OPTION ALL
SHOW OPTION "Add", "Exit"
...
The SHOW OPTION
and HIDE OPTION
instructions are provided for
backward compatibility. To hide and show default action views, use the DIALOG.setActionHidden()
method
instead. In GUI applications, it is recommended that you disable actions, instead of hiding them
from the end user.