%ga - Gang Controls

Purpose

To enable radio buttons and/or bitmap buttons to be ganged together so that if one is switched on, all the others are switched off.

Syntax

winio@('%Nga',state1state2, . . , stateN)
integer state1state2, . ., stateN     (output)

Modifiers

Grave accent (`) - used to specify that one control is always on.

Tilde (~) - the list of "state controls" is replaced by a single array.

Description

N is a positive integer greater than 1. state1 . . stateN are the on/off state controls for radio buttons and/or bitmap buttons defined elsewhere. A given state variable can be used in more than one control (%rb (Radio Button (or Check box)) and/or %tb (Bitmap Button)). However, it is unusual for a variable to appear in more than one %ga format for a given window. If it does then there must only be one variable that is common and the effect is to merge the two gang sets. If the grave accent is used on one of the gangs then it must be used on both.

Example

winio@('%3ga',rb1, rb2, rb3)

See also

%rb (Radio Button (or Check box)), %tb (Bitmap Button)

 

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited