author | Claus Gittinger <cg@exept.de> |
Sat, 11 Nov 1995 17:23:54 +0100 | |
changeset 174 | d80a6cc3f9b2 |
parent 119 | 59758ff5b841 |
child 205 | 6814c0bf8df8 |
permissions | -rw-r--r-- |
0 | 1 |
" |
5 | 2 |
COPYRIGHT (c) 1991 by Claus Gittinger |
0 | 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 |
||
105 | 13 |
'From Smalltalk/X, Version:2.10.5 on 14-mar-1995 at 11:09:35 am'! |
14 |
||
0 | 15 |
Toggle subclass:#RadioButton |
105 | 16 |
instanceVariableNames:'' |
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'Views-Interactors' |
|
0 | 20 |
! |
21 |
||
38 | 22 |
!RadioButton class methodsFor:'documentation'! |
23 |
||
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1991 by Claus Gittinger |
|
27 |
All Rights Reserved |
|
0 | 28 |
|
38 | 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:
119
diff
changeset
|
39 |
^ '$Header: /cvs/stx/stx/libwidg/RadioButton.st,v 1.10 1995-11-11 16:22:24 cg Exp $' |
38 | 40 |
! |
41 |
||
42 |
documentation |
|
43 |
" |
|
44 |
like a Toggle, but do not turn off when pressed again, instead only |
|
45 |
turn off when another RadioButton is pressed (see RadioButtonGroup). |
|
46 |
||
47 |
written fall 91 by claus |
|
48 |
" |
|
86 | 49 |
! |
50 |
||
51 |
examples |
|
52 |
" |
|
119 | 53 |
See more examples in RadioButtonGroup class>>examples |
54 |
||
55 |
example1: one on behavior (using RadioButtons) |
|
105 | 56 |
|
86 | 57 |
|top panel b group| |
58 |
||
59 |
top := StandardSystemView new. |
|
60 |
top extent:200@200. |
|
61 |
||
62 |
panel := HorizontalPanelView |
|
119 | 63 |
origin:0.0@0.0 |
64 |
corner:1.0@1.0 |
|
65 |
in:top. |
|
86 | 66 |
|
67 |
group := RadioButtonGroup new. |
|
68 |
||
69 |
b := RadioButton label:'am' in:panel. |
|
70 |
group add:b. |
|
71 |
||
72 |
b := RadioButton label:'fm' in:panel. |
|
73 |
group add:b. |
|
74 |
||
75 |
b := RadioButton label:'off' in:panel. |
|
76 |
group add:b. |
|
77 |
||
78 |
top open |
|
105 | 79 |
|
80 |
||
119 | 81 |
example2: zero or one on behavior (using Toggles) |
105 | 82 |
|
83 |
|top panel b group| |
|
84 |
||
85 |
top := StandardSystemView new. |
|
86 |
top extent:200@200. |
|
87 |
||
88 |
panel := HorizontalPanelView |
|
119 | 89 |
origin:0.0@0.0 |
90 |
corner:1.0@1.0 |
|
91 |
in:top. |
|
105 | 92 |
|
93 |
group := RadioButtonGroup new. |
|
94 |
||
95 |
b := Toggle label:'am' in:panel. |
|
96 |
group add:b. |
|
97 |
||
98 |
b := Toggle label:'fm' in:panel. |
|
99 |
group add:b. |
|
100 |
||
101 |
b := Toggle label:'off' in:panel. |
|
102 |
group add:b. |
|
103 |
||
104 |
top open |
|
86 | 105 |
" |
38 | 106 |
! ! |
0 | 107 |
|
105 | 108 |
!RadioButton methodsFor:'initialization'! |
0 | 109 |
|
105 | 110 |
defaultControllerClass |
111 |
^ RadioButtonController |
|
0 | 112 |
! ! |
113 |