author | Claus Gittinger <cg@exept.de> |
Sat, 11 Nov 1995 17:23:54 +0100 | |
changeset 174 | d80a6cc3f9b2 |
parent 128 | 06a050529335 |
child 200 | aa3e56929a5a |
permissions | -rw-r--r-- |
128 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
104 | 13 |
'From Smalltalk/X, Version:2.10.5 on 14-mar-1995 at 11:07:27 am'! |
14 |
||
15 |
ToggleController subclass:#RadioButtonController |
|
16 |
instanceVariableNames:'' |
|
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
126 | 19 |
category:'Interface-Support-Controllers' |
104 | 20 |
! |
21 |
||
128 | 22 |
!RadioButtonController class methodsFor:'documentation'! |
23 |
||
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
27 |
All Rights Reserved |
|
28 |
||
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
38 |
version |
|
174
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
128
diff
changeset
|
39 |
^ '$Header: /cvs/stx/stx/libwidg/RadioButtonController.st,v 1.4 1995-11-11 16:22:21 cg Exp $' |
128 | 40 |
! |
41 |
||
42 |
documentation |
|
43 |
" |
|
44 |
RadioButtonControllers redefine the response to a button-click. |
|
45 |
While toggles (i.e. ToggleControllers) change state with every click, |
|
46 |
radioButtons will only do so for an off-to-on transition. |
|
47 |
They will NEVER turn themselfes off with a click. |
|
48 |
To turn a radioButton off, another button in its buttonGroup must |
|
49 |
be turned on and thereby (via the buttonGroup) turn the first button off. |
|
50 |
||
51 |
You can place both toggles (for 'zero-or-one-on' behavior) or |
|
52 |
radiobuttons (for 'one-on' behavior) into a buttongroup. |
|
53 |
" |
|
54 |
! ! |
|
55 |
||
104 | 56 |
!RadioButtonController methodsFor:'event handling'! |
57 |
||
58 |
buttonPress:button x:x y:y |
|
59 |
"radiobuttons change only off-to-on; turning off is done by other |
|
128 | 60 |
buttons." |
104 | 61 |
|
62 |
pressed ifFalse:[ |
|
126 | 63 |
view toggle |
104 | 64 |
] |
65 |
! ! |
|
66 |