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

M Save
C Create
D Copy
A Delete
F End
0 First (radio button)
9 Last (radio button)
< Previous (radio button)
> Next (radio button)
R Selection
H Code change
E Printing
L List
J Attachments
K Comments
@ Properties
T Transactions

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
CLECUR True if a current key exists