SETBOUT

Description

This action is called before the re-displaying of the window.

Template

Window entry

Use

This action is called in order to make certain buttons or menus inaccessible. The "END" button cannot be deactivated.

To deactivate the buttons or menus, their button/menu code is to be deleted in the variable CHMEN, by the following instruction :
Call VIREBOUT(CHAINE,"XXX") From GOBJET              (XXX : list of button and menu codes to be de-activated)
Gosub SET_BOUT_SPE From GSAISIE

To de-activate the standard buttons (those defined in the 3rd tab of the window dictionary), their button code will be need to be deleted from the variable CHBOU, by the following instruction :
Call VIREBOUT(CHAINE,"XXX") From GOBJET              (XXX : list of standard codes to be de-activated
Gosub SET_BOUT_STD From GSAISIE

This action can be used to assign a default button. This will be taken into account once the user uses the "RETURN" button. For this, it is necessary to set the variable STADEF by the status of the desired button. 

The list of standard buttons accompanied by their code is displayed below.

Status button Button title
GSTAESC End
GSTAENR Save
GSTACRE Create
GSTAANU Delete
GSTAFIN Cancel
GSTAOK Ok
GSTANEW New 
GSTAFIR First
GSTALAS Last
GSTAPRE Previous
GSTASUI Next
GSTASEL Selection
GSTACHG Code change
GSTAEDI Printing
GSTALIS List
GSTAJOI Attachments
GSTACOM Comments
GSTAPRO Properties

The list of standard buttons accompanied by their code is displayed below.

Button code Button title
E Save
C Create
S Delete
A Cancel
O Ok
N New 
0 First
9 Last
< Previous
> Next
X Selection
H Code change
I : Printing
L List
J Attachments
M Comments
P Properties