Silverfrost Logo About Us | Contact Us
 

%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.

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 and/or %tb). 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

 

 

 

Copyright © 1999-2017 Silverfrost Limited