'Enable' is used to ungray 1 or several buttons at the bottom of the screen and/or the menus of the menu bar.

Syntax

Enable liste_status

Setups

Element

Description

Restrictions

list_status

List of id_status separated by the character ','.

None

id_status

Whole expression

For the menus and standard buttons, use the global variables defined in the GLOBVAR processing.

Examples

# ungraying of the CREATE SAVE buttons and their associated menu in the 'file' menu
Enable GSTACRE, GSTAENR

# could also be written (however, this is not recommended when there is a global variable for the status to be processed)
Enable 93, 92

# ungraying of the buttons specific to the function
Enable GSTABOU+1, GSTABOU+2

# call from a dialogue box with ungraying or graying-out of the specific buttons
# depending on a condition
Local Dlgbox Mask ABC button mess(15,198,1), mess(101,198,1)
coded GSTABOU+1, GSTABOU+2
Boxact [ABC]
If ... then
Enable GSTABOU+1, GSTABOU+2
else Disable GSTABOU+1, GSTABOU+2
Boxinp [ABC] using REPONS

Description

'Enable' is used to ungray 1 or several buttons at the bottom of the screen and/or the menus of the menu bar.

'Enable' is used just before the entry in the dialogue box.

In the Object management, 'Enable'is used mainly in the SETBOUT action.

The reports used by the'Enable'statement, are mainly stored in a global variable defined in the GLOBVAR processing.

It is possible to use the SETBOUT sub-program of the GESECRAN processing only for some reports (see example below).

Notes

# ungraying of the buttons CREATE SAVE can also be written in the following way
# in this case, the sub-program of the supervisor SETBOUT operates the Enable and
# Disableaccording to the setting at 0 or 1 of the lines for the variable ETABOU
Local Integer ETABOU(1..GNBBOU)
ETABOU (GCREE) = 1
ETABOU (GENRE) = 1
Call SETBOUT(ETABOU) From GESECRAN

Associated keywords

Disable - Grizo - Actzo - Status