author | Claus Gittinger <cg@exept.de> |
Thu, 08 Jul 1999 11:30:35 +0200 | |
changeset 1954 | dc1e397855dc |
parent 1892 | 110a6e458b5a |
child 1958 | 9d53df393af1 |
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 |
||
13 |
Toggle subclass:#RadioButton |
|
1882 | 14 |
instanceVariableNames:'buttonStyle buttonOnLevel buttonOffLevel buttonOffImage |
15 |
buttonOnImage' |
|
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
16 |
classVariableNames:'DefaultButtonStyle DefaultActiveLevel DefaultPassiveLevel |
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
17 |
MotifCheckBotForm MotifCheckTopForm MotifCheckInnerForm |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
18 |
Round3DCheckBotForm Round3DCheckTopForm Round3DCheckInnerForm |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
19 |
RoundHalfLightForm RoundOffForm RoundOnForm' |
585 | 20 |
poolDictionaries:'' |
21 |
category:'Views-Interactors' |
|
0 | 22 |
! |
23 |
||
38 | 24 |
!RadioButton class methodsFor:'documentation'! |
25 |
||
26 |
copyright |
|
27 |
" |
|
28 |
COPYRIGHT (c) 1991 by Claus Gittinger |
|
29 |
All Rights Reserved |
|
0 | 30 |
|
38 | 31 |
This software is furnished under a license and may be used |
32 |
only in accordance with the terms of that license and with the |
|
33 |
inclusion of the above copyright notice. This software may not |
|
34 |
be provided or otherwise made available to, or used by, any |
|
35 |
other person. No title to or ownership of the software is |
|
36 |
hereby transferred. |
|
37 |
" |
|
38 |
! |
|
39 |
||
40 |
documentation |
|
41 |
" |
|
42 |
like a Toggle, but do not turn off when pressed again, instead only |
|
43 |
turn off when another RadioButton is pressed (see RadioButtonGroup). |
|
44 |
||
45 |
written fall 91 by claus |
|
585 | 46 |
|
47 |
[author:] |
|
48 |
Claus Gittinger |
|
38 | 49 |
" |
86 | 50 |
! |
51 |
||
52 |
examples |
|
53 |
" |
|
119 | 54 |
See more examples in RadioButtonGroup class>>examples |
55 |
||
56 |
example1: one on behavior (using RadioButtons) |
|
593 | 57 |
[exBegin] |
86 | 58 |
|top panel b group| |
59 |
||
60 |
top := StandardSystemView new. |
|
61 |
top extent:200@200. |
|
62 |
||
63 |
panel := HorizontalPanelView |
|
593 | 64 |
origin:0.0@0.0 |
65 |
corner:1.0@1.0 |
|
66 |
in:top. |
|
86 | 67 |
|
68 |
group := RadioButtonGroup new. |
|
69 |
||
70 |
b := RadioButton label:'am' in:panel. |
|
71 |
group add:b. |
|
72 |
||
73 |
b := RadioButton label:'fm' in:panel. |
|
74 |
group add:b. |
|
75 |
||
76 |
b := RadioButton label:'off' in:panel. |
|
77 |
group add:b. |
|
78 |
||
1087 | 79 |
group value:1. |
86 | 80 |
top open |
593 | 81 |
[exEnd] |
105 | 82 |
|
83 |
||
119 | 84 |
example2: zero or one on behavior (using Toggles) |
593 | 85 |
[exBegin] |
105 | 86 |
|top panel b group| |
87 |
||
88 |
top := StandardSystemView new. |
|
89 |
top extent:200@200. |
|
90 |
||
91 |
panel := HorizontalPanelView |
|
593 | 92 |
origin:0.0@0.0 |
93 |
corner:1.0@1.0 |
|
94 |
in:top. |
|
105 | 95 |
|
96 |
group := RadioButtonGroup new. |
|
97 |
||
98 |
b := Toggle label:'am' in:panel. |
|
99 |
group add:b. |
|
100 |
||
101 |
b := Toggle label:'fm' in:panel. |
|
102 |
group add:b. |
|
103 |
||
104 |
b := Toggle label:'off' in:panel. |
|
105 |
group add:b. |
|
106 |
||
1087 | 107 |
group value:1. |
105 | 108 |
top open |
593 | 109 |
[exEnd] |
1087 | 110 |
|
111 |
||
112 |
a selectionInListView and a group displaying the same value: |
|
113 |
[exBegin] |
|
114 |
|top top2 panel b sv group selectionInList| |
|
115 |
||
116 |
top := StandardSystemView extent:200@200. |
|
117 |
||
118 |
panel := HorizontalPanelView |
|
119 |
origin:0.0@0.0 corner:1.0@1.0 in:top. |
|
120 |
||
121 |
group := RadioButtonGroup new. |
|
122 |
selectionInList := SelectionInList new. |
|
123 |
selectionInList list:#('am' 'fm' 'off'). |
|
124 |
selectionInList selectionIndexHolder:group. |
|
125 |
||
126 |
b := Toggle label:'am' in:panel. |
|
127 |
group add:b. |
|
128 |
||
129 |
b := Toggle label:'fm' in:panel. |
|
130 |
group add:b. |
|
131 |
||
132 |
b := Toggle label:'off' in:panel. |
|
133 |
group add:b. |
|
134 |
||
135 |
group value:1. |
|
136 |
top open. |
|
137 |
||
138 |
top2 := StandardSystemView extent:200@200. |
|
139 |
sv := SelectionInListView in:top2. |
|
140 |
sv model:selectionInList. |
|
141 |
sv origin:0.0@0.0 corner:1.0@1.0. |
|
142 |
top2 open. |
|
143 |
||
144 |
[exEnd] |
|
86 | 145 |
" |
38 | 146 |
! ! |
0 | 147 |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
148 |
!RadioButton class methodsFor:'defaults'! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
149 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
150 |
motifCheckBotForm |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
151 |
MotifCheckBotForm isNil ifTrue:[ |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
152 |
MotifCheckBotForm := Form |
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
153 |
width:15 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
154 |
height:15 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
155 |
fromArray:#[2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
156 |
2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
157 |
2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
158 |
2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
159 |
2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
160 |
2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
161 |
2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
162 |
2r00000000 2r00001110 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
163 |
2r01110000 2r00011100 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
164 |
2r00111000 2r00111000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
165 |
2r00011100 2r01110000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
166 |
2r00001110 2r11100000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
167 |
2r00000111 2r11000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
168 |
2r00000011 2r10000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
169 |
2r00000001 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
170 |
]. |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
171 |
MotifCheckBotForm := MotifCheckBotForm onDevice:Display. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
172 |
]. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
173 |
^ MotifCheckBotForm |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
174 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
175 |
"Created: / 3.11.1997 / 12:06:45 / cg" |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
176 |
"Modified: / 30.7.1998 / 21:27:53 / cg" |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
177 |
! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
178 |
|
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
179 |
motifCheckInnerForm |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
180 |
MotifCheckInnerForm isNil ifTrue:[ |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
181 |
MotifCheckInnerForm := Form |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
182 |
width:15 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
183 |
height:15 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
184 |
fromArray:#[2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
185 |
2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
186 |
2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
187 |
2r00000001 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
188 |
2r00000011 2r10000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
189 |
2r00000111 2r11000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
190 |
2r00001111 2r11100000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
191 |
2r00011111 2r11110000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
192 |
2r00001111 2r11100000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
193 |
2r00000111 2r11000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
194 |
2r00000011 2r10000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
195 |
2r00000001 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
196 |
2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
197 |
2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
198 |
2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
199 |
]. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
200 |
MotifCheckInnerForm := MotifCheckInnerForm onDevice:Display |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
201 |
]. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
202 |
^ MotifCheckInnerForm |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
203 |
|
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
204 |
"Created: / 3.11.1997 / 12:06:45 / cg" |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
205 |
"Modified: / 30.7.1998 / 21:28:45 / cg" |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
206 |
! |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
207 |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
208 |
motifCheckTopForm |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
209 |
MotifCheckTopForm isNil ifTrue:[ |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
210 |
MotifCheckTopForm := Form |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
211 |
width:15 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
212 |
height:15 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
213 |
fromArray:#[2r00000001 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
214 |
2r00000011 2r10000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
215 |
2r00000111 2r11000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
216 |
2r00001110 2r11100000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
217 |
2r00011100 2r01110000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
218 |
2r00111000 2r00111000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
219 |
2r01110000 2r00011100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
220 |
2r11100000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
221 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
222 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
223 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
224 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
225 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
226 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
227 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
228 |
]. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
229 |
MotifCheckTopForm := MotifCheckTopForm onDevice:Display |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
230 |
]. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
231 |
^ MotifCheckTopForm |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
232 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
233 |
"Created: / 3.11.1997 / 12:06:45 / cg" |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
234 |
"Modified: / 30.7.1998 / 21:28:45 / cg" |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
235 |
! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
236 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
237 |
round3DCheckBotForm |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
238 |
Round3DCheckBotForm isNil ifTrue:[ |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
239 |
Round3DCheckBotForm := Form |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
240 |
width:15 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
241 |
height:15 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
242 |
fromArray:#[2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
243 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
244 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
245 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
246 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
247 |
2r00000000 2r00000010 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
248 |
2r00000000 2r00000010 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
249 |
2r00000000 2r00000110 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
250 |
2r00000000 2r00000110 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
251 |
2r00000000 2r00000110 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
252 |
2r00000000 2r00001110 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
253 |
2r01110000 2r00011100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
254 |
2r01111000 2r00111100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
255 |
2r00111111 2r11111000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
256 |
2r00001111 2r11100000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
257 |
]. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
258 |
Round3DCheckBotForm := Round3DCheckBotForm onDevice:Display. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
259 |
]. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
260 |
^ Round3DCheckBotForm |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
261 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
262 |
"Created: / 3.11.1997 / 14:29:37 / cg" |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
263 |
"Modified: / 30.7.1998 / 21:29:57 / cg" |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
264 |
! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
265 |
|
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
266 |
round3DCheckInnerForm |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
267 |
Round3DCheckInnerForm isNil ifTrue:[ |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
268 |
Round3DCheckInnerForm := Form |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
269 |
width:15 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
270 |
height:15 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
271 |
fromArray:#[2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
272 |
2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
273 |
2r00000111 2r11000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
274 |
2r00001111 2r11100000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
275 |
2r00011111 2r11110000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
276 |
2r00111111 2r11111000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
277 |
2r00111111 2r11111000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
278 |
2r00111111 2r11111000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
279 |
2r00111111 2r11111000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
280 |
2r00111111 2r11111000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
281 |
2r00011111 2r11110000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
282 |
2r00001111 2r11100000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
283 |
2r00000111 2r11000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
284 |
2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
285 |
2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
286 |
]. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
287 |
|
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
288 |
Round3DCheckInnerForm := Round3DCheckInnerForm onDevice:Display. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
289 |
]. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
290 |
^ Round3DCheckInnerForm |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
291 |
|
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
292 |
"Created: / 3.11.1997 / 14:29:45 / cg" |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
293 |
"Modified: / 30.7.1998 / 21:30:47 / cg" |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
294 |
! |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
295 |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
296 |
round3DCheckTopForm |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
297 |
Round3DCheckTopForm isNil ifTrue:[ |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
298 |
Round3DCheckTopForm := Form |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
299 |
width:15 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
300 |
height:15 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
301 |
fromArray:#[2r00000011 2r10000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
302 |
2r00011110 2r11110000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
303 |
2r00111000 2r00011000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
304 |
2r01110000 2r00001100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
305 |
2r01100000 2r00001100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
306 |
2r11000000 2r00000100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
307 |
2r11000000 2r00000100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
308 |
2r11000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
309 |
2r11000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
310 |
2r11000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
311 |
2r01100000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
312 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
313 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
314 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
315 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
316 |
]. |
1394
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
317 |
"/ fromArray:#[2r00000111 2r11000000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
318 |
"/ 2r00011110 2r11110000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
319 |
"/ 2r00111000 2r00111000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
320 |
"/ 2r01110000 2r00011100 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
321 |
"/ 2r01100000 2r00001100 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
322 |
"/ 2r11000000 2r00000100 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
323 |
"/ 2r11000000 2r00000000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
324 |
"/ 2r11000000 2r00000000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
325 |
"/ 2r11000000 2r00000000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
326 |
"/ 2r11000000 2r00000000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
327 |
"/ 2r01100000 2r00000000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
328 |
"/ 2r00000000 2r00000000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
329 |
"/ 2r00000000 2r00000000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
330 |
"/ 2r00000000 2r00000000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
331 |
"/ 2r00000000 2r00000000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
332 |
"/ ] |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
333 |
|
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
334 |
Round3DCheckTopForm := Round3DCheckTopForm onDevice:Display. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
335 |
]. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
336 |
^ Round3DCheckTopForm |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
337 |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
338 |
"Created: / 3.11.1997 / 14:29:45 / cg" |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
339 |
"Modified: / 30.7.1998 / 21:30:47 / cg" |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
340 |
! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
341 |
|
1393 | 342 |
roundHalfLightForm |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
343 |
RoundHalfLightForm isNil ifTrue:[ |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
344 |
RoundHalfLightForm := Form |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
345 |
width:15 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
346 |
height:15 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
347 |
fromArray:#[2r00001100 2r01100000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
348 |
2r00110000 2r00010000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
349 |
2r01100000 2r00001000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
350 |
2r01000000 2r00000100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
351 |
2r11000000 2r00000100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
352 |
2r10000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
353 |
2r10000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
354 |
2r10000000 2r00000100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
355 |
2r10000000 2r00000100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
356 |
2r10000000 2r00000100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
357 |
2r11000000 2r00001000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
358 |
2r00110000 2r00010000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
359 |
2r00011000 2r00110000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
360 |
2r00000111 2r11000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
361 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
362 |
]. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
363 |
|
1394
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
364 |
"/ fromArray:#[2r00000000 2r00000000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
365 |
"/ 2r00000011 2r10000000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
366 |
"/ 2r00001000 2r00100000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
367 |
"/ 2r00010000 2r00010000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
368 |
"/ 2r00100000 2r00001000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
369 |
"/ 2r00000000 2r00000100 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
370 |
"/ 2r01000000 2r00000100 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
371 |
"/ 2r01000000 2r00000100 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
372 |
"/ 2r01000000 2r00000100 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
373 |
"/ 2r00000000 2r00000100 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
374 |
"/ 2r00100000 2r00001000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
375 |
"/ 2r00010000 2r00010000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
376 |
"/ 2r00001000 2r00100000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
377 |
"/ 2r00000011 2r10000000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
378 |
"/ 2r00000000 2r00000000 |
7db0ce820be2
beautified 3D bitmaps (OS/2 style)
Claus Gittinger <cg@exept.de>
parents:
1393
diff
changeset
|
379 |
"/ ] |
1393 | 380 |
|
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
381 |
RoundHalfLightForm := RoundHalfLightForm onDevice:Display. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
382 |
]. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
383 |
^ RoundHalfLightForm |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
384 |
|
1393 | 385 |
"Created: / 3.11.1997 / 18:26:40 / cg" |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
386 |
"Modified: / 30.7.1998 / 21:31:55 / cg" |
1393 | 387 |
! |
388 |
||
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
389 |
roundOffForm |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
390 |
RoundOffForm isNil ifTrue:[ |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
391 |
RoundOffForm := Form |
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
392 |
width:16 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
393 |
height:16 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
394 |
fromArray:#[ |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
395 |
|
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
396 |
"/ 2r00000011 2r10000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
397 |
"/ 2r00001111 2r11100000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
398 |
"/ 2r00111100 2r01111000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
399 |
"/ 2r00110000 2r00011000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
400 |
"/ 2r01100000 2r00001100 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
401 |
"/ 2r01100000 2r00001100 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
402 |
"/ 2r11000000 2r00000110 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
403 |
"/ 2r11000000 2r00000110 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
404 |
"/ 2r11000000 2r00000110 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
405 |
"/ 2r01100000 2r00001100 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
406 |
"/ 2r01100000 2r00001100 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
407 |
"/ 2r00110000 2r00011000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
408 |
"/ 2r00111100 2r01111000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
409 |
"/ 2r00001111 2r11100000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
410 |
"/ 2r00000011 2r10000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
411 |
"/ 2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
412 |
|
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
413 |
2r00000011 2r10000000 |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
414 |
2r00001100 2r01100000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
415 |
2r00010000 2r00010000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
416 |
2r00100000 2r00001000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
417 |
2r01000000 2r00000100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
418 |
2r01000000 2r00000100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
419 |
2r10000000 2r00000010 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
420 |
2r10000000 2r00000010 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
421 |
2r10000000 2r00000010 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
422 |
2r01000000 2r00000100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
423 |
2r01000000 2r00000100 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
424 |
2r00100000 2r00001000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
425 |
2r00010000 2r00010000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
426 |
2r00001100 2r01100000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
427 |
2r00000011 2r10000000 |
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
428 |
2r00000000 2r00000000 |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
429 |
]. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
430 |
RoundOffForm := RoundOffForm onDevice:Display. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
431 |
]. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
432 |
^ RoundOffForm |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
433 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
434 |
"Created: / 3.11.1997 / 12:41:13 / cg" |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
435 |
"Modified: / 30.7.1998 / 21:33:03 / cg" |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
436 |
! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
437 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
438 |
roundOnForm |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
439 |
RoundOnForm isNil ifTrue:[ |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
440 |
RoundOnForm := Form |
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
441 |
width:16 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
442 |
height:16 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
443 |
fromArray:#[ |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
444 |
|
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
445 |
"/ 2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
446 |
"/ 2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
447 |
"/ 2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
448 |
"/ 2r00000111 2r11000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
449 |
"/ 2r00001111 2r11100000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
450 |
"/ 2r00011111 2r11110000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
451 |
"/ 2r00011111 2r11110000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
452 |
"/ 2r00011111 2r11110000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
453 |
"/ 2r00011111 2r11110000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
454 |
"/ 2r00011111 2r11110000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
455 |
"/ 2r00001111 2r11100000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
456 |
"/ 2r00000111 2r11000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
457 |
"/ 2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
458 |
"/ 2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
459 |
"/ 2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
460 |
"/ 2r00000000 2r00000000 |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
461 |
|
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
462 |
2r00000000 2r00000000 |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
463 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
464 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
465 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
466 |
2r00000011 2r10000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
467 |
2r00000111 2r11000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
468 |
2r00001111 2r11100000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
469 |
2r00001111 2r11100000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
470 |
2r00001111 2r11100000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
471 |
2r00000111 2r11000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
472 |
2r00000011 2r10000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
473 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
474 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
475 |
2r00000000 2r00000000 |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
476 |
2r00000000 2r00000000 |
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
477 |
2r00000000 2r00000000 |
1629
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
478 |
]. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
479 |
RoundOnForm := RoundOnForm onDevice:Display. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
480 |
]. |
21481cd942f9
cache forms - avoid recreation.
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
481 |
^ RoundOnForm |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
482 |
|
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
483 |
"RoundOnForm := nil. self updateStyleCache" |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
484 |
! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
485 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
486 |
updateStyleCache |
1882 | 487 |
<resource: #style (#'radioButton.style' |
488 |
#'radioButton.activeLevel' |
|
489 |
#'radioButton.passiveLevel' |
|
490 |
#'radioButton.activeImageFile' |
|
491 |
#'radioButton.activeImage' |
|
492 |
#'radioButton.passiveImageFile' |
|
493 |
#'radioButton.passiveImage')> |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
494 |
|
1882 | 495 |
|l f| |
496 |
||
497 |
DefaultButtonStyle := StyleSheet at:#'radioButton.style'. |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
498 |
l := -1. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
499 |
DefaultButtonStyle == #round2D ifTrue:[l := 0]. |
1882 | 500 |
DefaultActiveLevel := StyleSheet at:#'radioButton.activeLevel' default:l. |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
501 |
DefaultButtonStyle == #motif ifTrue:[l := 1]. |
1882 | 502 |
DefaultPassiveLevel := StyleSheet at:#'radioButton.passiveLevel' default:l. |
503 |
||
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
504 |
RoundOnForm := RoundOffForm := nil. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
505 |
|
1882 | 506 |
f := StyleSheet at:#'radioButton.activeImageFile'. |
507 |
f notNil ifTrue:[ |
|
508 |
f := Image fromFile:f. |
|
509 |
] ifFalse:[ |
|
510 |
f := StyleSheet at:#'radioButton.activeImage'. |
|
511 |
]. |
|
512 |
f notNil ifTrue:[ |
|
513 |
RoundOnForm := f onDevice:Display |
|
514 |
]. |
|
515 |
||
516 |
f := StyleSheet at:#'radioButton.passiveImageFile'. |
|
517 |
f notNil ifTrue:[ |
|
518 |
f := Image fromFile:f. |
|
519 |
] ifFalse:[ |
|
520 |
f := StyleSheet at:#'radioButton.passiveImage'. |
|
521 |
]. |
|
522 |
f notNil ifTrue:[ |
|
523 |
RoundOffForm := f onDevice:Display |
|
524 |
]. |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
525 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
526 |
" |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
527 |
self updateStyleCache |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
528 |
" |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
529 |
|
1882 | 530 |
"Modified: / 28.4.1999 / 13:59:00 / cg" |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
531 |
! ! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
532 |
|
1583
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
533 |
!RadioButton methodsFor:'accessing'! |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
534 |
|
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
535 |
allViewBackground:something |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
536 |
"redefined here" |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
537 |
|
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
538 |
self backgroundColor:something. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
539 |
|
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
540 |
(buttonStyle == #motif |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
541 |
or:[buttonStyle == #round3D |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
542 |
or:[buttonStyle == #image]]) ifTrue:[ |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
543 |
enteredBgColor := something. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
544 |
activeBgColor := something. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
545 |
] |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
546 |
! |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
547 |
|
1583
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
548 |
forceRadioButtonStyle |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
549 |
"force the radioButton to be displayed as round/motif radio button - |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
550 |
even if the styleSheet defaults differently. |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
551 |
(as in IRIS style)" |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
552 |
|
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
553 |
buttonStyle isNil ifTrue:[ |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
554 |
styleSheet is3D ifTrue:[ |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
555 |
buttonStyle := #round3D. |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
556 |
activeBgColor := bgColor. |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
557 |
activeFgColor := fgColor. |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
558 |
] ifFalse:[ |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
559 |
buttonStyle := #round2D. |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
560 |
activeFgColor := fgColor. |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
561 |
activeBgColor := bgColor. |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
562 |
]. |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
563 |
buttonOnLevel := DefaultActiveLevel. |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
564 |
buttonOffLevel := DefaultPassiveLevel. |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
565 |
onLevel := offLevel := 0. |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
566 |
self level:0 |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
567 |
] |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
568 |
|
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
569 |
"Modified: / 18.6.1998 / 21:19:01 / cg" |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
570 |
"Created: / 18.6.1998 / 21:23:58 / cg" |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
571 |
! ! |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
572 |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
573 |
!RadioButton methodsFor:'drawing'! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
574 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
575 |
drawToggleImage |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
576 |
"drawing of the radio image is done here." |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
577 |
|
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
578 |
|x y clrTop clrBot imgTop imgBot imgInside imgH imgOn threeD lvl |
1882 | 579 |
isActive| |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
580 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
581 |
buttonStyle isNil ifTrue:[ |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
582 |
^ super drawToggleImage |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
583 |
]. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
584 |
|
1882 | 585 |
isActive := controller pressed. |
586 |
||
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
587 |
threeD := true. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
588 |
buttonStyle == #motif ifTrue:[ |
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
589 |
"/ square rotated by 45 degrees ... |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
590 |
imgTop := self class motifCheckTopForm. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
591 |
imgBot := self class motifCheckBotForm. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
592 |
imgInside := self class motifCheckInnerForm. |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
593 |
] ifFalse:[ |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
594 |
buttonStyle == #round3D ifTrue:[ |
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
595 |
"/ round 3D button ... |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
596 |
imgTop := self class round3DCheckTopForm. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
597 |
imgBot := self class round3DCheckBotForm. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
598 |
imgInside := self class round3DCheckInnerForm. |
1882 | 599 |
imgH := self class roundHalfLightForm. |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
600 |
buttonOnLevel == buttonOffLevel ifTrue:[ |
1882 | 601 |
isActive ifTrue:[ |
602 |
imgOn := self class roundOnForm. |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
603 |
] |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
604 |
]. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
605 |
] ifFalse:[ |
1882 | 606 |
buttonStyle == #image ifTrue:[ |
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
607 |
"/ bitmap images ... |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
608 |
imgTop := buttonOffImage. |
1882 | 609 |
isActive ifTrue:[ |
610 |
imgOn := buttonOnImage. |
|
611 |
]. |
|
612 |
] ifFalse:[ |
|
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
613 |
"/ round 2D ... |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
614 |
imgTop := self class roundOffForm. |
1882 | 615 |
isActive ifTrue:[ |
616 |
imgOn := self class roundOnForm. |
|
617 |
]. |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
618 |
]. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
619 |
threeD := false. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
620 |
] |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
621 |
]. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
622 |
|
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
623 |
imgTop notNil ifTrue:[imgTop := imgTop onDevice:device]. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
624 |
imgBot notNil ifTrue:[imgBot := imgBot onDevice:device]. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
625 |
imgInside notNil ifTrue:[imgInside := imgInside onDevice:device]. |
1882 | 626 |
imgH notNil ifTrue:[imgH := imgH onDevice:device]. |
627 |
imgOn notNil ifTrue:[imgOn := imgOn onDevice:device]. |
|
628 |
||
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
629 |
x := hSpace + margin. |
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
630 |
y := (height - imgTop height) // 2. |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
631 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
632 |
threeD ifFalse:[ |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
633 |
self paint:fgColor. |
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
634 |
self displayForm:imgTop x:x y:y. |
1882 | 635 |
isActive ifTrue:[ |
636 |
self paint:(lampColor ? activeFgColor). |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
637 |
self displayForm:imgOn x:x y:y |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
638 |
] |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
639 |
] ifTrue:[ |
1882 | 640 |
lvl := isActive ifTrue:[buttonOnLevel] |
641 |
ifFalse:[buttonOffLevel]. |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
642 |
lvl < 0 ifTrue:[ |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
643 |
clrTop := shadowColor. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
644 |
clrBot := lightColor. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
645 |
] ifFalse:[ |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
646 |
clrTop := lightColor. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
647 |
clrBot := shadowColor. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
648 |
]. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
649 |
self paint:clrTop. |
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
650 |
self displayForm:imgTop x:x y:y. |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
651 |
self paint:clrBot. |
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
652 |
self displayForm:imgBot x:x y:y. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
653 |
|
1393 | 654 |
(imgH notNil and:[halfShadowColor notNil]) ifTrue:[ |
655 |
self paint:halfShadowColor. |
|
656 |
self displayForm:imgH x:x y:y |
|
657 |
]. |
|
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
658 |
|
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
659 |
imgInside notNil ifTrue:[ |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
660 |
self paint:(View defaultViewBackgroundColor). |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
661 |
self displayForm:imgInside x:x y:y |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
662 |
]. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
663 |
(isActive and:[imgOn notNil]) ifTrue:[ |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
664 |
self paint:lampColor. |
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
665 |
self displayForm:imgOn x:x y:y |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
666 |
] |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
667 |
] |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
668 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
669 |
"Created: / 3.11.1997 / 12:16:30 / cg" |
1882 | 670 |
"Modified: / 28.4.1999 / 14:02:00 / cg" |
1696
adfae835bac8
draw the focus frame around the string only
Claus Gittinger <cg@exept.de>
parents:
1629
diff
changeset
|
671 |
! |
adfae835bac8
draw the focus frame around the string only
Claus Gittinger <cg@exept.de>
parents:
1629
diff
changeset
|
672 |
|
adfae835bac8
draw the focus frame around the string only
Claus Gittinger <cg@exept.de>
parents:
1629
diff
changeset
|
673 |
drawWin95FocusFrame |
adfae835bac8
draw the focus frame around the string only
Claus Gittinger <cg@exept.de>
parents:
1629
diff
changeset
|
674 |
"redefined to draw the focus frame around the string-only" |
adfae835bac8
draw the focus frame around the string only
Claus Gittinger <cg@exept.de>
parents:
1629
diff
changeset
|
675 |
|
1892 | 676 |
|x y m1| |
1696
adfae835bac8
draw the focus frame around the string only
Claus Gittinger <cg@exept.de>
parents:
1629
diff
changeset
|
677 |
|
adfae835bac8
draw the focus frame around the string only
Claus Gittinger <cg@exept.de>
parents:
1629
diff
changeset
|
678 |
x := labelOriginX. " margin + 1. " |
adfae835bac8
draw the focus frame around the string only
Claus Gittinger <cg@exept.de>
parents:
1629
diff
changeset
|
679 |
y := labelOriginY. " margin + 1. " |
1892 | 680 |
m1 := margin + 1. |
1696
adfae835bac8
draw the focus frame around the string only
Claus Gittinger <cg@exept.de>
parents:
1629
diff
changeset
|
681 |
self |
adfae835bac8
draw the focus frame around the string only
Claus Gittinger <cg@exept.de>
parents:
1629
diff
changeset
|
682 |
displayDottedRectangleX:x |
adfae835bac8
draw the focus frame around the string only
Claus Gittinger <cg@exept.de>
parents:
1629
diff
changeset
|
683 |
y:y |
1892 | 684 |
width:(width - x - m1) |
685 |
height:(height - y - m1). |
|
1696
adfae835bac8
draw the focus frame around the string only
Claus Gittinger <cg@exept.de>
parents:
1629
diff
changeset
|
686 |
|
adfae835bac8
draw the focus frame around the string only
Claus Gittinger <cg@exept.de>
parents:
1629
diff
changeset
|
687 |
"Created: / 17.9.1998 / 14:16:46 / cg" |
1892 | 688 |
"Modified: / 29.4.1999 / 21:51:00 / cg" |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
689 |
! ! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
690 |
|
105 | 691 |
!RadioButton methodsFor:'initialization'! |
0 | 692 |
|
105 | 693 |
defaultControllerClass |
694 |
^ RadioButtonController |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
695 |
! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
696 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
697 |
initStyle |
1882 | 698 |
<resource: #style (#'radioButton.showLamp')> |
699 |
||
1583
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
700 |
buttonStyle isNil ifTrue:[ |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
701 |
buttonStyle := DefaultButtonStyle. |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
702 |
]. |
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
703 |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
704 |
super initStyle. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
705 |
|
1814
bbeeed65ec84
do not highlight when entering (unless explicitely set)
Claus Gittinger <cg@exept.de>
parents:
1809
diff
changeset
|
706 |
enteredBgColor := bgColor. |
bbeeed65ec84
do not highlight when entering (unless explicitely set)
Claus Gittinger <cg@exept.de>
parents:
1809
diff
changeset
|
707 |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
708 |
buttonStyle isNil ifTrue:[ |
1882 | 709 |
showLamp := styleSheet at:#'radioButton.showLamp' default:showLamp. |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
710 |
^ self |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
711 |
]. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
712 |
|
1392 | 713 |
adjust := #left. |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
714 |
showLamp := true. |
1469 | 715 |
lampColor := Color black. |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
716 |
buttonOnLevel := DefaultActiveLevel. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
717 |
buttonOffLevel := DefaultPassiveLevel. |
1583
147916baf6dc
added #forceRadioButtonStyle - a kludge
Claus Gittinger <cg@exept.de>
parents:
1469
diff
changeset
|
718 |
onLevel := offLevel := 0. |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
719 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
720 |
self level:0. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
721 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
722 |
(buttonStyle == #motif |
1882 | 723 |
or:[buttonStyle == #round3D |
724 |
or:[buttonStyle == #image]]) ifTrue:[ |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
725 |
activeBgColor := bgColor. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
726 |
activeFgColor := fgColor. |
1882 | 727 |
buttonStyle == #image ifTrue:[ |
728 |
buttonOnImage := self class roundOnForm onDevice:device. |
|
729 |
buttonOffImage := self class roundOffForm onDevice:device. |
|
730 |
] |
|
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
731 |
] ifFalse:[ |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
732 |
buttonStyle == #round2D ifTrue:[ |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
733 |
activeFgColor := fgColor. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
734 |
activeBgColor := bgColor. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
735 |
] |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
736 |
] |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
737 |
|
1882 | 738 |
"Modified: / 28.4.1999 / 14:05:35 / cg" |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
739 |
! ! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
740 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
741 |
!RadioButton methodsFor:'private'! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
742 |
|
1392 | 743 |
computeLabelOrigin |
744 |
super computeLabelOrigin. |
|
1469 | 745 |
buttonStyle notNil ifTrue:[ |
746 |
labelOriginX := hSpace + 15 + hSpace |
|
1392 | 747 |
] |
748 |
||
749 |
"Modified: / 3.11.1997 / 18:17:58 / cg" |
|
750 |
! |
|
751 |
||
1469 | 752 |
computeLabelSize |
753 |
"compute the extent needed to hold the label plus the lamp" |
|
754 |
||
755 |
super computeLabelSize. |
|
756 |
buttonStyle notNil ifTrue:[ |
|
757 |
labelWidth := labelWidth + 15 |
|
758 |
] |
|
759 |
! |
|
760 |
||
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
761 |
lampImageHeight |
1391 | 762 |
buttonStyle isNil ifTrue:[^ super lampImageHeight]. |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
763 |
^ 15 |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
764 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
765 |
"Created: / 3.11.1997 / 14:27:27 / cg" |
1391 | 766 |
"Modified: / 3.11.1997 / 18:10:39 / cg" |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
767 |
! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
768 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
769 |
lampImageWidth |
1391 | 770 |
buttonStyle isNil ifTrue:[^ super lampImageWidth]. |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
771 |
^ 15 |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
772 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
773 |
"Created: / 3.11.1997 / 14:27:23 / cg" |
1391 | 774 |
"Modified: / 3.11.1997 / 18:10:50 / cg" |
1384
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
775 |
! ! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
776 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
777 |
!RadioButton methodsFor:'queries'! |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
778 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
779 |
is3D |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
780 |
buttonStyle == #round2D ifTrue:[^ false.]. |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
781 |
^ super is3D |
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
782 |
|
e4acb2c5b10b
more styles (motif, round3D and round2D)
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
783 |
"Created: / 3.11.1997 / 14:39:36 / cg" |
0 | 784 |
! ! |
785 |
||
205 | 786 |
!RadioButton class methodsFor:'documentation'! |
787 |
||
788 |
version |
|
1954
dc1e397855dc
allow for allViewBackground to be set.
Claus Gittinger <cg@exept.de>
parents:
1892
diff
changeset
|
789 |
^ '$Header: /cvs/stx/stx/libwidg/RadioButton.st,v 1.30 1999-07-08 09:29:50 cg Exp $' |
205 | 790 |
! ! |