author | Claus Gittinger <cg@exept.de> |
Sat, 11 Nov 1995 17:23:54 +0100 | |
changeset 174 | d80a6cc3f9b2 |
parent 105 | 3d064ba4a0cc |
child 175 | bb91e76dae76 |
permissions | -rw-r--r-- |
0 | 1 |
" |
5 | 2 |
COPYRIGHT (c) 1992 by Claus Gittinger |
59 | 3 |
All Rights Reserved |
0 | 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:10:40 am'! |
99 | 14 |
|
0 | 15 |
VariableVerticalPanel subclass:#VariableHorizontalPanel |
59 | 16 |
instanceVariableNames:'' |
95 | 17 |
classVariableNames:'DefaultCursor' |
59 | 18 |
poolDictionaries:'' |
19 |
category:'Views-Layout' |
|
0 | 20 |
! |
21 |
||
38 | 22 |
!VariableHorizontalPanel class methodsFor:'documentation'! |
23 |
||
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1992 by Claus Gittinger |
|
59 | 27 |
All Rights Reserved |
38 | 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:
105
diff
changeset
|
39 |
^ '$Header: /cvs/stx/stx/libwidg/VariableHorizontalPanel.st,v 1.14 1995-11-11 16:23:36 cg Exp $' |
38 | 40 |
! |
41 |
||
42 |
documentation |
|
43 |
" |
|
44 |
a View to separate its subviews horizontally by a movable bar |
|
45 |
to adjust the size-ratios. |
|
46 |
The bar-handle is either an exposed knob (knobStyle == #motif) |
|
47 |
or the forms defined in Scroller (knobStyle ~~ #motif) |
|
48 |
or nothing. |
|
49 |
||
50 |
The subvies dimensions MUST be given as relative sizes; |
|
51 |
typically creation is done as: |
|
0 | 52 |
|
59 | 53 |
p := VariableHorizontalPanel in:superView. |
54 |
v1 := <someViewClass> origin:0.0 @ 0.0 |
|
55 |
corner:0.5 @ 1.0 |
|
56 |
in:p. |
|
57 |
v2 := <someViewClass> origin:0.5 @ 0.0 |
|
58 |
corner:0.8 @ 1.0 |
|
59 |
in:p. |
|
60 |
v3 := <someViewClass> origin:0.8 @ 0.0 |
|
61 |
corner:1.0 @ 1.0 |
|
62 |
in:p. |
|
38 | 63 |
|
63 | 64 |
" |
65 |
! |
|
66 |
||
67 |
examples |
|
68 |
" |
|
38 | 69 |
example: |
59 | 70 |
|top p v1 v2 v3| |
38 | 71 |
|
59 | 72 |
top := StandardSystemView new. |
73 |
top extent:300@200. |
|
0 | 74 |
|
59 | 75 |
p := VariableHorizontalPanel |
76 |
origin:0.0 @ 0.0 |
|
77 |
corner:1.0 @ 1.0 |
|
78 |
in:top. |
|
79 |
v1 := SelectionInListView |
|
80 |
origin:0.0 @ 0.0 |
|
81 |
corner:0.5 @ 1.0 |
|
82 |
in:p. |
|
83 |
v2 := EditTextView |
|
84 |
origin:0.5 @ 0.0 |
|
85 |
corner:0.8 @ 1.0 |
|
86 |
in:p. |
|
87 |
v3 := ScrollableView |
|
88 |
for:TextView |
|
89 |
in:p. |
|
90 |
v3 origin:0.8 @ 0.0 |
|
91 |
corner:1.0 @ 1.0. |
|
92 |
top open |
|
38 | 93 |
" |
94 |
! ! |
|
0 | 95 |
|
99 | 96 |
!VariableHorizontalPanel methodsFor:'private'! |
97 |
||
0 | 98 |
handleOriginsFrom:start to:stop do:aBlock |
99 |
"evaluate the argument block for some handle-origins" |
|
100 |
||
63 | 101 |
|y hh vDelta| |
0 | 102 |
|
103 |
subViews notNil ifTrue:[ |
|
59 | 104 |
shadowForm notNil ifTrue:[ |
105 |
hh := shadowForm height |
|
106 |
] ifFalse:[ |
|
63 | 107 |
hh := barWidth |
108 |
]. |
|
109 |
(handleStyle ~~ #normal and:[handleStyle ~~ #mswindows]) ifTrue:[ |
|
110 |
vDelta := barWidth // 2. |
|
111 |
] ifFalse:[ |
|
112 |
vDelta := 0 |
|
59 | 113 |
]. |
114 |
(handlePosition == #left) ifTrue:[ |
|
63 | 115 |
y := vDelta |
59 | 116 |
] ifFalse:[ |
117 |
(handlePosition == #right) ifTrue:[ |
|
63 | 118 |
y := height - hh - margin - vDelta |
59 | 119 |
] ifFalse:[ |
63 | 120 |
y := height - barWidth // 2 |
59 | 121 |
] |
122 |
]. |
|
123 |
(start + 1) to:stop do:[:index | |
|
124 |
|x view| |
|
0 | 125 |
|
59 | 126 |
view := subViews at:index. |
127 |
x := view origin x - barHeight + 1. |
|
128 |
aBlock value:(x @ y) |
|
129 |
] |
|
0 | 130 |
] |
131 |
! |
|
132 |
||
105 | 133 |
resizeSubviewsFrom:start to:stop |
134 |
"readjust size of some subviews" |
|
135 |
||
136 |
|step nSubviews| |
|
137 |
||
138 |
subViews notNil ifTrue:[ |
|
174
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
139 |
(start <= stop) ifTrue:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
140 |
step := 1 |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
141 |
] ifFalse:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
142 |
step := -1 |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
143 |
]. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
144 |
nSubviews := subViews size. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
145 |
start to:stop by:step do:[:index | |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
146 |
|bw view o1 o2 relCorner relOrg newCorner newOrg newExt| |
105 | 147 |
|
174
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
148 |
view := subViews at:index. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
149 |
bw := view borderWidth. |
105 | 150 |
|
174
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
151 |
index == 1 ifTrue:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
152 |
o1 := 0. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
153 |
] ifFalse:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
154 |
o1 := barHeight // 2 - bw |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
155 |
]. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
156 |
index == nSubviews ifTrue:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
157 |
o2 := 0. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
158 |
] ifFalse:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
159 |
o2 := barHeight // 2 - bw |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
160 |
]. |
105 | 161 |
|
174
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
162 |
relCorner := view relativeCorner. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
163 |
relCorner isNil ifTrue:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
164 |
self error:'subview must have relative corner' |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
165 |
]. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
166 |
newCorner := view cornerFromRelativeCorner. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
167 |
newCorner notNil ifTrue:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
168 |
newCorner x:(newCorner x - o2) |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
169 |
]. |
105 | 170 |
|
171 |
" |
|
174
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
172 |
relOrg := view relativeOrigin. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
173 |
relOrg isNil ifTrue:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
174 |
self error:'subview must have relative origin' |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
175 |
]. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
176 |
newOrg := view originFromRelativeOrigin. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
177 |
newOrg notNil ifTrue:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
178 |
(index ~~ 1) ifTrue:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
179 |
newOrg x:(newOrg x + o1) |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
180 |
]. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
181 |
]. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
182 |
view pixelOrigin:newOrg corner:newCorner |
105 | 183 |
" |
174
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
184 |
newOrg := view computeOrigin. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
185 |
newOrg notNil ifTrue:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
186 |
(index ~~ 1) ifTrue:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
187 |
newOrg x:(newOrg x + o1) |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
188 |
]. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
189 |
]. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
190 |
newExt := view computeExtent. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
191 |
newExt notNil ifTrue:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
192 |
newExt x:(newExt x - o2 - o1) |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
193 |
]. |
105 | 194 |
|
174
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
195 |
view pixelOrigin:newOrg extent:newExt. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
196 |
] |
105 | 197 |
] |
198 |
! |
|
199 |
||
0 | 200 |
setupSubviewSizes |
201 |
"setup subviews sizes (in case of non-relative sizes)" |
|
202 |
||
203 |
|x w | |
|
204 |
||
205 |
self anyNonRelativeSubviews ifTrue:[ |
|
59 | 206 |
"there is at least one subview without |
207 |
relative origin/extent - setup all subviews |
|
208 |
to spread evenly ..." |
|
0 | 209 |
|
59 | 210 |
x := 0.0. |
211 |
w := 1.0 / (subViews size). |
|
0 | 212 |
|
59 | 213 |
1 to:(subViews size) do:[:index | |
214 |
|view| |
|
0 | 215 |
|
59 | 216 |
view := subViews at:index. |
217 |
index == subViews size ifTrue:[ |
|
218 |
view origin:(x @ 0.0) corner:(1.0 @ 1.0) |
|
219 |
] ifFalse:[ |
|
220 |
view origin:(x @ 0.0) corner:((x + w) @ 1.0) |
|
221 |
]. |
|
222 |
x := x + w |
|
223 |
] |
|
0 | 224 |
] |
105 | 225 |
! |
226 |
||
227 |
setupSubviewOrigins |
|
228 |
"setup subviews origins (SV 16.1.95)" |
|
229 |
||
230 |
|x e| |
|
231 |
||
232 |
x := 0.0. |
|
233 |
||
234 |
1 to:(subViews size) do:[:index | |
|
174
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
235 |
|view| |
105 | 236 |
|
174
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
237 |
view := subViews at:index. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
238 |
e := view relativeExtent. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
239 |
e notNil ifTrue:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
240 |
view relativeExtent:nil. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
241 |
e := e x. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
242 |
index == subViews size ifTrue:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
243 |
view origin:(x @ 0.0) corner:(1.0 @ 1.0) |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
244 |
] ifFalse:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
245 |
view origin:(x @ 0.0) corner:((x+e) @ 1.0) |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
246 |
]. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
247 |
x := x + e. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
248 |
] ifFalse: [ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
249 |
view origin:(x @ 0.0). |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
250 |
x := view relativeCorner x. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
251 |
]. |
105 | 252 |
] |
253 |
||
0 | 254 |
! ! |
255 |
||
99 | 256 |
!VariableHorizontalPanel methodsFor:'initializing'! |
0 | 257 |
|
99 | 258 |
initCursor |
259 |
"set the cursor - a horizontal double arrow" |
|
0 | 260 |
|
99 | 261 |
DefaultCursor notNil ifTrue:[ |
262 |
cursor := DefaultCursor |
|
263 |
] ifFalse:[ |
|
264 |
cursor := Cursor sourceForm:(Form fromFile:'VHPanel.xbm') |
|
265 |
maskForm:(Form fromFile:'VHPanel_m.xbm') |
|
266 |
hotX:8 |
|
267 |
hotY:8. |
|
268 |
" |
|
269 |
if bitmaps are not available, use a standard cursor |
|
270 |
" |
|
271 |
cursor isNil ifTrue:[ |
|
272 |
"which one looks better ?" |
|
273 |
cursor := Cursor leftRightArrow |
|
274 |
"cursor := Cursor leftLimitArrow" |
|
59 | 275 |
]. |
99 | 276 |
DefaultCursor := cursor |
0 | 277 |
] |
278 |
! |
|
279 |
||
99 | 280 |
defaultControllerClass |
281 |
^ VariableHorizontalPanelController |
|
0 | 282 |
! ! |
283 |
||
284 |
!VariableHorizontalPanel methodsFor:'drawing'! |
|
285 |
||
286 |
drawHandleAtX:hx y:hy |
|
287 |
|w x m| |
|
288 |
||
59 | 289 |
shadowForm notNil ifTrue:[ |
63 | 290 |
w := shadowForm width |
0 | 291 |
] ifFalse:[ |
59 | 292 |
w := barHeight - 4 |
0 | 293 |
]. |
294 |
||
295 |
self paint:viewBackground. |
|
296 |
self fillRectangleX:hx y:margin |
|
59 | 297 |
width:barHeight |
298 |
height:(height - margin - margin). |
|
0 | 299 |
|
59 | 300 |
(handleStyle ~~ #normal and:[handleStyle ~~ #mswindows]) ifTrue:[ |
301 |
m := (barHeight - w) // 2. |
|
302 |
shadowForm isNil ifTrue:[ |
|
303 |
x := hx + (barHeight // 2). |
|
304 |
separatingLine ifTrue:[ |
|
305 |
self paint:shadowColor. |
|
306 |
self displayLineFromX:x y:margin toX:x y:(height - margin). |
|
307 |
x := x + 1. |
|
308 |
self paint:lightColor. |
|
309 |
self displayLineFromX:x y:margin toX:x y:(height - margin). |
|
310 |
]. |
|
311 |
self paint:viewBackground. |
|
312 |
self fillRectangleX:hx y:(hy - barWidth) |
|
313 |
width:w |
|
314 |
height:(barWidth + barWidth). |
|
0 | 315 |
|
59 | 316 |
x := hx. |
317 |
handleStyle == #st80 ifTrue:[ |
|
318 |
x := x - 1. |
|
319 |
]. |
|
320 |
self drawEdgesForX:(x + m) |
|
321 |
y:(hy - barWidth) |
|
322 |
width:w |
|
323 |
height:(barWidth + barWidth) |
|
60 | 324 |
level:2. |
325 |
||
326 |
handleStyle == #iris ifTrue:[ |
|
63 | 327 |
self paint:handleColor. |
60 | 328 |
self fillDeviceRectangleX:(x + m + 2) |
329 |
y:(hy - barWidth + 2) |
|
330 |
width:w - 4 |
|
331 |
height:(barWidth + barWidth - 4) |
|
332 |
] |
|
59 | 333 |
] ifFalse:[ |
334 |
x := hx. |
|
335 |
self drawHandleFormAtX:(x + m) y:hy |
|
336 |
]. |
|
337 |
handleStyle == #st80 ifTrue:[ |
|
338 |
x := hx - 1. |
|
339 |
self paint:lightColor. |
|
340 |
self displayLineFromX:x y:margin toX:x y:(height - margin). |
|
341 |
self displayLineFromX:hx y:0 toX:(hx + barHeight - 1) y:0. |
|
342 |
x := hx + barHeight - 2. |
|
343 |
self paint:shadowColor. |
|
344 |
self displayLineFromX:x y:margin toX:x y:(height - margin). |
|
345 |
"uncomment the -1 if you dont like the notch at the bottom end" |
|
346 |
" VVV" |
|
347 |
self displayLineFromX:hx" "-1" " y:height-1 toX:(hx + barHeight - 1) y:height-1. |
|
348 |
]. |
|
0 | 349 |
] ifFalse:[ |
63 | 350 |
x := hx + barHeight - 1. |
59 | 351 |
self paint:handleColor. |
352 |
separatingLine ifTrue:[ |
|
63 | 353 |
self displayLineFromX:hx+1 y:0 toX:hx+1 y:height. |
59 | 354 |
self displayLineFromX:x y:0 toX:x y:height. |
355 |
]. |
|
63 | 356 |
self fillRectangleX:hx y:hy width:barHeight height:barWidth |
0 | 357 |
] |
105 | 358 |
! |
359 |
||
360 |
invertHandleBarAtX:hx y:hy |
|
361 |
self noClipByChildren. |
|
362 |
self xoring:[ |
|
174
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
363 |
|x| |
105 | 364 |
|
174
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
365 |
trackLine ifTrue:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
366 |
x := hx + (barHeight // 2). |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
367 |
self displayLineFromX:x y:0 toX:x y:height. |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
368 |
] ifFalse:[ |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
369 |
self fillRectangleX:hx y:0 width:barHeight height:height |
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
105
diff
changeset
|
370 |
] |
105 | 371 |
]. |
372 |
self clipByChildren. |
|
373 |
||
374 |
||
99 | 375 |
! ! |
0 | 376 |