FutureBasic Logo

<<    Index    >> FutureBasic

radiobutton   statement / function

radiobutton tag, enabled, state, title, rect, wndTag

Function syntax
state = radiobutton(tag)

The radiobutton statement puts a new radiobutton in the current output window, or alters an existing radiobutton's characteristics. The radiobutton function returns the state of the radiobutton and is equivalent to calling fn ButtonState.

tag A number (1 through 1000000) that you assign when you create the radiobutton and that you refer to when altering or closing the radiobutton. The number you assign must be different from the tag value of all other existing widgets in the current window. A negative tag hides the radiobutton.
enabled A boolean value which specifies whether the checkbox should be enabled or disabled.
state Sets the state of the radiobutton.
title The text that appears to the right of the radiobutton as a CFString expression.
rect The radiobutton's enclosing rectangle. This can be specified in either of two ways:
(i) (x,y,w,h) where x,y are the origin and w,h the size of the radiobutton.
(ii) A CGRect value
wndTag An optional parameter for when the radiobutton's window is not the current output window. Note specifying this parameter does not bring the window to the front or make it the output window.
Dialog event

See also

Apple documentation