Radio button - %rb[button_text]

In this section:

This format, %rb (Radio Button (or Check box)), defines a radio button. The button text is a standard character string. It takes a single INTEGER argument that is set to 0 or 1 according to whether the corresponding control is off or on. The grave accent (`) is used to change this control to a check box. Radio buttons can be ganged together (see Gang format) so that only one of a set is selected at any one time. Note that it is not "standard" Windows programming practice to gang check boxes together.

For example:

      WINAPP
      INTEGER i,winio@,r(2),c(3)
      DATA r/1,0/c/1,2*0/
      i=winio@('%ca[Radio buttons]%bg[grey]&')
      i=winio@('Format:%nl&')
      i=winio@('%2`ga&',r(1),r(2))
      i=winio@('%ta%rb[PCX]%nl&',r(1))
      i=winio@('%ta%rb[BMP]%2nl&',r(2))
      i=winio@('Compression:%nl&')
      i=winio@('%3`ga&',c(1),c(2),c(3))
      i=winio@('%ta%`rb[High]%nl&',c(1))
      i=winio@('%ta%`rb[Medium]%nl&',c(2))
      i=winio@('%ta%`rb[Low]',c(3))
      END

The caret character (^) is used in association with a call-back function and this will be called whenever the item is selected.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited