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 buttonButton title
GSTAESCEnd
GSTAENRSave
GSTACRECreate
GSTAANUDelete
GSTAFINCancel
GSTAOKOk
GSTANEWNew 
GSTAFIRFirst
GSTALASLast
GSTAPREPrevious
GSTASUINext
GSTASELSelection
GSTACHGCode change
GSTAEDIPrinting
GSTALISList
GSTAJOIAttachments
GSTACOMComments
GSTAPROProperties

 

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

Button codeButton title
ESave
CCreate
SDelete
ACancel
OOk
NNew 
0First
9Last
<Previous
>Next
XSelection
HCode change
I :Printing
LList
JAttachments
MComments
PProperties