SHOW/HIDE OPTION instruction

The HIDE OPTION and SHOW OPTION to hide or show MENU options.

Syntax:

{ HIDE | SHOW } OPTION
    { ALL
    | option-name [,...]
    }

Usage

The SHOW OPTION instruction will show/enable action views corresponding the listed menu options. The default action views (buttons in action frame) are made visible and the explicit action views (buttons in form) are enabled. The HIDE OPTION instruction will hide default action views and disable explicit action views.

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.

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, you should rather disable actions, instead of hiding them to the end user.

Example

MENU "Customers"
   BEFORE MENU
      HIDE OPTION ALL
      SHOW OPTION "Add", "Exit"
   ...