SETBOUT

Description

This action is executed before the re-display of the window, following the activation of the buttons, menus, left list on the entry of the key (but not on the entry of any other field).

OBJect type

Simple, Grid, Combined

Transaction

No

Use

This action is called to make it possible to make the buttons and menus inaccessible.

To deactivate the buttons, the button code needs to be deleted from the variable CHAINE, by the following instruction :
Call VIREBOUT(CHAINE,"XXX") From GOBJET              (XXX : list of codes to be de-activated)

To activate the menus, their menu code needs to be added to the variable CHMEN, in the following fashion : 
CHMEN +=  "XXX"                                                             (XXX : list of codes to be activated)
Gosub SET_BOUT_SPE From GSAISIE

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

Button code

Button title

MSave
CCreate
DCopy
ADelete
FEnd
0First (radio button)
9Last (radio button)
<Previous (radio button)
>Next (radio button)
RSelection
HCode change
EPrinting
LList
JAttachments
KComments
@Properties
TTransactions

Amongst the variables that can be tested to identify the context, other than the mask values, the following variables are available :

Variable

Report

GREP"C" creation, "D" copy, "M" modification, "A" cancellation
CLECURTrue if a current key exists