"
COPYRIGHT (c) 1991 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
"
Toggle subclass:#RadioButton
instanceVariableNames:''
classVariableNames:''
poolDictionaries:''
category:'Views-Interactors'
!
!RadioButton class methodsFor:'documentation'!
copyright
"
COPYRIGHT (c) 1991 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
"
!
documentation
"
like a Toggle, but do not turn off when pressed again, instead only
turn off when another RadioButton is pressed (see RadioButtonGroup).
written fall 91 by claus
"
!
examples
"
See more examples in RadioButtonGroup class>>examples
example1: one on behavior (using RadioButtons)
|top panel b group|
top := StandardSystemView new.
top extent:200@200.
panel := HorizontalPanelView
origin:0.0@0.0
corner:1.0@1.0
in:top.
group := RadioButtonGroup new.
b := RadioButton label:'am' in:panel.
group add:b.
b := RadioButton label:'fm' in:panel.
group add:b.
b := RadioButton label:'off' in:panel.
group add:b.
top open
example2: zero or one on behavior (using Toggles)
|top panel b group|
top := StandardSystemView new.
top extent:200@200.
panel := HorizontalPanelView
origin:0.0@0.0
corner:1.0@1.0
in:top.
group := RadioButtonGroup new.
b := Toggle label:'am' in:panel.
group add:b.
b := Toggle label:'fm' in:panel.
group add:b.
b := Toggle label:'off' in:panel.
group add:b.
top open
"
! !
!RadioButton methodsFor:'initialization'!
defaultControllerClass
^ RadioButtonController
! !
!RadioButton class methodsFor:'documentation'!
version
^ '$Header: /cvs/stx/stx/libwidg/Attic/RButton.st,v 1.11 1995-11-23 18:18:43 cg Exp $'
! !