author | Stefan Vogel <sv@exept.de> |
Mon, 06 Sep 2004 19:56:20 +0200 | |
changeset 4216 | 0a6a150d2c03 |
parent 3877 | 89fcd4d6d527 |
child 4403 | 3342601d3fed |
permissions | -rw-r--r-- |
0 | 1 |
" |
6 | 2 |
COPYRIGHT (c) 1992 by Claus Gittinger |
80 | 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 |
||
3201 | 13 |
"{ Package: 'stx:libview' }" |
14 |
||
0 | 15 |
Object subclass:#Cursor |
577 | 16 |
instanceVariableNames:'shape sourceForm maskForm hotX hotY device cursorId' |
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
17 |
classVariableNames:'DefaultFgColor DefaultBgColor NormalCursor HandCursor ArrowCursor |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
18 |
WaitCursor CrossHairCursor OriginCursor CornerCursor SquareCursor |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
19 |
FourWayCursor UpDownArrowCursor LeftRightArrowCursor |
577 | 20 |
ThumbsUpCursor ThumbsDownCursor ReadCursor WriteCursor XeqCursor |
21 |
StopCursor EyeCursor BlankCursor MarkerCursor UpCursor DownCursor |
|
2121
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
22 |
LeftCursor RightCursor XMarkerCursor CaretCursor |
2616
9e03b6a1e2d0
questionMarkCursor; fixed CrossCursor.
Claus Gittinger <cg@exept.de>
parents:
2615
diff
changeset
|
23 |
UpRightHandCursor DocumentCursor FolderCursor CrossCursor |
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
24 |
QuestionMarkCursor LeftHandCursor BottomLeftCornerCursor |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
25 |
TopRightCornerCursor DownLimitCursor UpLimitCursor |
3201 | 26 |
LeftLimitCursor RightLimitCursor ClosedEyeCursor' |
577 | 27 |
poolDictionaries:'' |
28 |
category:'Graphics-Support' |
|
0 | 29 |
! |
30 |
||
1140 | 31 |
!Cursor class methodsFor:'documentation'! |
0 | 32 |
|
46 | 33 |
copyright |
34 |
" |
|
35 |
COPYRIGHT (c) 1992 by Claus Gittinger |
|
80 | 36 |
All Rights Reserved |
46 | 37 |
|
38 |
This software is furnished under a license and may be used |
|
39 |
only in accordance with the terms of that license and with the |
|
40 |
inclusion of the above copyright notice. This software may not |
|
41 |
be provided or otherwise made available to, or used by, any |
|
42 |
other person. No title to or ownership of the software is |
|
43 |
hereby transferred. |
|
44 |
" |
|
45 |
! |
|
46 |
||
0 | 47 |
documentation |
38 | 48 |
" |
49 |
I represents cursors in a device independent manner. |
|
144 | 50 |
Normally, cursors are defined at view creation time, |
601 | 51 |
via |
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
52 |
'aView cursor:aCursor'. |
601 | 53 |
|
54 |
[Instance variables:] |
|
0 | 55 |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
56 |
shape <Symbol> a shape (i.e. #arrow, #hand, ...) or nil |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
57 |
sourceForm <Form> if shape is nil, the source bits |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
58 |
maskForm <Form> if shape is nil, the mask bits |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
59 |
hotX <SmallInteger> if shape is nil, the hotSpot x of the cursor |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
60 |
hotY <SmallInteger> if shape is nil, the hotSpot y of the cursor |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
61 |
device <aDevice> the device, if associated to one |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
62 |
cursorId <anObject> the device-specific id if device is nonNil |
0 | 63 |
|
601 | 64 |
[class variables:] |
65 |
||
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
66 |
Lobby <Registry> keeps track of known device cursors |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
67 |
(dont use it: this will be moved to the device) |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
68 |
|
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
69 |
DefaultFgColor <Color> default foreground color for cursors (usually black) |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
70 |
DefaultBgColor <Color> default background color for cursors (usually white) |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
71 |
|
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
72 |
NormalCursor <Cursor> cached instance of normal (arrow) cursor |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
73 |
... |
0 | 74 |
|
601 | 75 |
[see also:] |
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
76 |
DeviceWorkstation |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
77 |
DisplaySurface |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
78 |
Font Color Image Form |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
79 |
( introduction to view programming :html: programming/viewintro.html#CURSOR ) |
611 | 80 |
|
81 |
[author:] |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
82 |
Claus Gittinger |
38 | 83 |
" |
144 | 84 |
! |
85 |
||
86 |
examples |
|
87 |
" |
|
88 |
get a standard cursor: |
|
89 |
||
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
90 |
Cursor wait |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
91 |
Cursor stop |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
92 |
Cursor normal |
144 | 93 |
|
94 |
create a custom cursor: |
|
95 |
||
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
96 |
Cursor extent:16@16 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
97 |
fromArray:#[ 2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
98 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
99 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
100 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
101 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
102 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
103 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
104 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
105 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
106 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
107 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
108 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
109 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
110 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
111 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
112 |
2r00000000 2r00000000] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
113 |
offset:-8 @ -8 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
114 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
115 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
116 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
117 |
some common cursors ... |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
118 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
119 |
|v b cursors nextCursorAction| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
120 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
121 |
cursors := OrderedCollection new. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
122 |
cursors add:#arrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
123 |
cursors add:#blank. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
124 |
cursors add:#bottomLeft. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
125 |
cursors add:#bottomRight. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
126 |
cursors add:#caret. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
127 |
cursors add:#corner. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
128 |
cursors add:#cross. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
129 |
cursors add:#crossHair. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
130 |
cursors add:#document. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
131 |
cursors add:#down. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
132 |
cursors add:#downLimitArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
133 |
cursors add:#execute. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
134 |
cursors add:#eye. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
135 |
cursors add:#folder. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
136 |
cursors add:#fourWay. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
137 |
cursors add:#hand. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
138 |
cursors add:#left. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
139 |
cursors add:#leftHand. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
140 |
cursors add:#leftLimitArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
141 |
cursors add:#leftRightArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
142 |
cursors add:#marker. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
143 |
cursors add:#normal. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
144 |
cursors add:#origin. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
145 |
cursors add:#questionMark. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
146 |
cursors add:#read. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
147 |
cursors add:#right. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
148 |
cursors add:#rightLimitArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
149 |
cursors add:#stop. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
150 |
cursors add:#text. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
151 |
cursors add:#thumbsDown. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
152 |
cursors add:#thumbsUp. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
153 |
cursors add:#topLeft. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
154 |
cursors add:#topRight. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
155 |
cursors add:#up. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
156 |
cursors add:#upDownArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
157 |
cursors add:#upLeftArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
158 |
cursors add:#upLimitArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
159 |
cursors add:#upRightArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
160 |
cursors add:#upRightHand. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
161 |
cursors add:#wait. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
162 |
cursors add:#write. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
163 |
cursors add:#xMarker. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
164 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
165 |
nextCursorAction := [ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
166 |
|sel c| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
167 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
168 |
cursors isEmpty ifTrue:[ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
169 |
v close. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
170 |
] ifFalse:[ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
171 |
sel := cursors removeFirst. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
172 |
c := Cursor perform:sel. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
173 |
b label:sel. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
174 |
b cursor:c. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
175 |
] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
176 |
]. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
177 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
178 |
v := StandardSystemView extent:100@100. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
179 |
b := Button origin:0.0@0.0 corner:1.0@1.0 in:v. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
180 |
b label:'default'. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
181 |
b action:nextCursorAction. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
182 |
v openAndWait. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
183 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
184 |
[exEnd] |
144 | 185 |
|
186 |
define a cursor for a view: |
|
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
187 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
188 |
|v| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
189 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
190 |
v := StandardSystemView extent:100@100. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
191 |
v cursor:Cursor stop. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
192 |
v open. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
193 |
[exEnd] |
619 | 194 |
|
144 | 195 |
|
196 |
with above custom cursor: |
|
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
197 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
198 |
|v| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
199 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
200 |
v := StandardSystemView extent:100@100. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
201 |
v cursor:( |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
202 |
Cursor extent:16@16 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
203 |
fromArray:#[ 2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
204 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
205 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
206 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
207 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
208 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
209 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
210 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
211 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
212 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
213 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
214 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
215 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
216 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
217 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
218 |
2r00000000 2r00000000] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
219 |
offset:-8 @ -8). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
220 |
v open. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
221 |
[exEnd] |
1929 | 222 |
|
223 |
||
224 |
a custom cursor with mask: |
|
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
225 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
226 |
|v| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
227 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
228 |
v := StandardSystemView extent:100@100. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
229 |
v cursor:( |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
230 |
Cursor |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
231 |
extent:16@16 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
232 |
sourceArray:#[ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
233 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
234 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
235 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
236 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
237 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
238 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
239 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
240 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
241 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
242 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
243 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
244 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
245 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
246 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
247 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
248 |
2r00000000 2r00000000] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
249 |
maskArray:#[ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
250 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
251 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
252 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
253 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
254 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
255 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
256 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
257 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
258 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
259 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
260 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
261 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
262 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
263 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
264 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
265 |
2r00000000 2r00000000] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
266 |
offset:-8 @ -8). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
267 |
v open. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
268 |
[exEnd] |
1929 | 269 |
|
270 |
||
271 |
a cursor from an image read from a file: |
|
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
272 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
273 |
|v img| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
274 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
275 |
v := StandardSystemView extent:100@100. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
276 |
img := Image fromFile:'bitmaps/xpmBitmaps/cursors/mouse.xpm'. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
277 |
v cursor:(Cursor fromImage:img). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
278 |
v open. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
279 |
[exEnd] |
619 | 280 |
|
144 | 281 |
|
282 |
with multiple views: |
|
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
283 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
284 |
|v1 v2 top| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
285 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
286 |
top := StandardSystemView new. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
287 |
top extent:300@300. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
288 |
v1 := View origin:0.0@0.0 corner:1.0@0.5 in:top. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
289 |
v1 viewBackground:(Color grey:75). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
290 |
v1 cursor:Cursor thumbsUp. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
291 |
v2 := View origin:0.0@0.5 corner:1.0@1.0 in:top. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
292 |
v2 viewBackground:(Color white). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
293 |
v2 cursor:Cursor wait. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
294 |
top open. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
295 |
[exEnd] |
144 | 296 |
|
297 |
||
702 | 298 |
show a cursor (in the active ST/X view) for a while: |
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
299 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
300 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
301 |
Cursor wait |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
302 |
showWhile:[ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
303 |
Delay waitForSeconds:5 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
304 |
] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
305 |
[exEnd] |
144 | 306 |
|
307 |
||
151 | 308 |
show a cursor in all views belonging to a windowGroup: |
309 |
(have to wait until top is visible to access windowGroup) |
|
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
310 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
311 |
|v1 v2 top| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
312 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
313 |
top := StandardSystemView new. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
314 |
top extent:300@300. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
315 |
v1 := View origin:0.0@0.0 corner:1.0@0.5 in:top. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
316 |
v1 viewBackground:(Color grey:75). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
317 |
v1 cursor:(Cursor normal). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
318 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
319 |
v2 := View origin:0.0@0.5 corner:1.0@1.0 in:top. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
320 |
v2 viewBackground:(Color white). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
321 |
v2 cursor:(Cursor crossHair). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
322 |
top openAndWait. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
323 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
324 |
Delay waitForSeconds:3. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
325 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
326 |
top windowGroup |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
327 |
withCursor:Cursor wait |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
328 |
do:[ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
329 |
Delay waitForSeconds:5 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
330 |
] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
331 |
[exEnd] |
151 | 332 |
|
333 |
||
144 | 334 |
show a cursor in a single view for a while: |
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
335 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
336 |
|v1 v2 top| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
337 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
338 |
top := StandardSystemView new. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
339 |
top extent:300@300. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
340 |
v1 := View origin:0.0@0.0 corner:1.0@0.5 in:top. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
341 |
v1 viewBackground:(Color grey:75). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
342 |
v1 cursor:(Cursor normal). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
343 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
344 |
v2 := View origin:0.0@0.5 corner:1.0@1.0 in:top. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
345 |
v2 viewBackground:(Color white). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
346 |
v2 cursor:(Cursor crossHair). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
347 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
348 |
top openAndWait. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
349 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
350 |
Delay waitForSeconds:3. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
351 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
352 |
v1 withCursor:Cursor wait |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
353 |
do:[ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
354 |
Delay waitForSeconds:5 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
355 |
] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
356 |
[exEnd] |
144 | 357 |
" |
0 | 358 |
! ! |
359 |
||
1140 | 360 |
!Cursor class methodsFor:'initialization'! |
0 | 361 |
|
2845 | 362 |
flushDeviceCursorsFor:aDevice |
0 | 363 |
"unassign all cursors from their device" |
364 |
||
2845 | 365 |
aDevice deviceCursors do:[:aCursor | |
366 |
aCursor setDevice:nil id:nil |
|
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
367 |
]. |
2845 | 368 |
aDevice releaseDeviceCursors |
369 |
||
577 | 370 |
! |
371 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
372 |
initialize |
3218
dd321bee52a3
ensure Color-class is initialized
Claus Gittinger <cg@exept.de>
parents:
3213
diff
changeset
|
373 |
Color initialize. |
3221 | 374 |
Form initialize. |
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
375 |
self initializeNewCursors |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
376 |
|
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
377 |
" |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
378 |
Cursor initialize |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
379 |
" |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
380 |
! |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
381 |
|
1495 | 382 |
initializeNewCursors |
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
383 |
"Create additional cursors as bitmap cursors, |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
384 |
if not available as native cursors on the device. |
2844 | 385 |
This is invoked via the startup script (display.rc) |
386 |
(This is rubbish - we should keep that info on a per-device basis ...) |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
387 |
Cursor blank |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
388 |
Cursor down |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
389 |
Cursor execute |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
390 |
Cursor left |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
391 |
Cursor marker |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
392 |
Cursor normal |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
393 |
Cursor read |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
394 |
Cursor right |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
395 |
Cursor square |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
396 |
Cursor up |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
397 |
Cursor wait |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
398 |
Cursor write |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
399 |
Cursor thumbsUp |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
400 |
Cursor thumbsDown |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
401 |
Cursor xMarker |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
402 |
Cursor caret |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
403 |
Cursor stop |
3201 | 404 |
Cursor eye |
405 |
Cursor eyeClosed" |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
406 |
|
3462 | 407 |
|device bits isWindows| |
1495 | 408 |
|
3213 | 409 |
HandCursor notNil ifTrue:[^ self]. |
410 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
411 |
device := Display. |
2999
5e9272beef1b
eliminated refs to Display - must use Screen current
Stefan Vogel <sv@exept.de>
parents:
2980
diff
changeset
|
412 |
device isNil ifTrue:[ |
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
413 |
isWindows := OperatingSystem isMSWINDOWSlike. |
2999
5e9272beef1b
eliminated refs to Display - must use Screen current
Stefan Vogel <sv@exept.de>
parents:
2980
diff
changeset
|
414 |
] ifFalse:[ |
5e9272beef1b
eliminated refs to Display - must use Screen current
Stefan Vogel <sv@exept.de>
parents:
2980
diff
changeset
|
415 |
isWindows := device platformName = 'WIN32'. |
5e9272beef1b
eliminated refs to Display - must use Screen current
Stefan Vogel <sv@exept.de>
parents:
2980
diff
changeset
|
416 |
]. |
1495 | 417 |
|
3066 | 418 |
HandCursor := |
419 |
(Cursor |
|
420 |
extent: 16@16 |
|
421 |
sourceArray: #( |
|
422 |
2r0000000000000011 |
|
423 |
2r0000000000001111 |
|
424 |
2r0000000000111100 |
|
425 |
2r0000000001111000 |
|
426 |
2r0000000011110000 |
|
427 |
2r0000000111111000 |
|
428 |
2r0000001111111100 |
|
429 |
2r0000001111111000 |
|
430 |
2r0001111111111100 |
|
431 |
2r0011011111111100 |
|
432 |
2r0110000111111000 |
|
433 |
2r0110000111110000 |
|
434 |
2r0011001010000000 |
|
435 |
2r0001100010000000 |
|
436 |
2r0000110100000000 |
|
437 |
2r0000011000000000) |
|
438 |
maskArray: #( |
|
439 |
2r0000000000000011 |
|
440 |
2r0000000000001111 |
|
441 |
2r0000000000111100 |
|
442 |
2r0000000001111000 |
|
443 |
2r0000000011110000 |
|
444 |
2r0000000111111000 |
|
445 |
2r0000001111111100 |
|
446 |
2r0000001111111000 |
|
447 |
2r0001111111111100 |
|
448 |
2r0011011111111100 |
|
449 |
2r0110000111111000 |
|
450 |
2r0110000111110000 |
|
451 |
2r0011001010000000 |
|
452 |
2r0001100010000000 |
|
453 |
2r0000110100000000 |
|
454 |
2r0000011000000000) |
|
455 |
offset: 0@ -15). |
|
456 |
HandCursor setShape:#upRightHand. |
|
457 |
||
458 |
FolderCursor := |
|
459 |
(Cursor |
|
460 |
extent: 16@16 |
|
461 |
sourceArray: #( |
|
462 |
2r0000000000000000 |
|
463 |
2r0011111000000000 |
|
464 |
2r0100000100000000 |
|
465 |
2r1111111111111110 |
|
466 |
2r1000000000000001 |
|
467 |
2r1000000000000001 |
|
468 |
2r1000000000000001 |
|
469 |
2r1000000000000001 |
|
470 |
2r1000000000000001 |
|
471 |
2r1000000000000001 |
|
472 |
2r1000000000000001 |
|
473 |
2r1000000000000001 |
|
474 |
2r1000000000000001 |
|
475 |
2r1010101010101011 |
|
476 |
2r0111111111111111 |
|
477 |
2r0000000000000000) |
|
478 |
maskArray: #( |
|
479 |
2r0000000000000000 |
|
480 |
2r0011111000000000 |
|
481 |
2r0111111100000000 |
|
482 |
2r1111111111111110 |
|
483 |
2r1111111111111111 |
|
484 |
2r1111111111111111 |
|
485 |
2r1111111111111111 |
|
486 |
2r1111111111111111 |
|
487 |
2r1111111111111111 |
|
488 |
2r1111111111111111 |
|
489 |
2r1111111111111111 |
|
490 |
2r1111111111111111 |
|
491 |
2r1111111111111111 |
|
492 |
2r1111111111111111 |
|
493 |
2r0111111111111111 |
|
494 |
2r0000000000000000) |
|
495 |
offset: 0@ -3). |
|
496 |
||
497 |
DocumentCursor := |
|
498 |
(Cursor |
|
499 |
extent: 16@16 |
|
500 |
sourceArray: #( |
|
501 |
2r0000000000000000 |
|
502 |
2r0011111111100000 |
|
503 |
2r0010000000110000 |
|
504 |
2r0010000000101000 |
|
505 |
2r0010000000111100 |
|
506 |
2r0010000000000100 |
|
507 |
2r0010000000000100 |
|
508 |
2r0010000000000100 |
|
509 |
2r0010000000000100 |
|
510 |
2r0010000000000100 |
|
511 |
2r0010000000000100 |
|
512 |
2r0010000000000100 |
|
513 |
2r0010000000000100 |
|
514 |
2r0010000000000100 |
|
515 |
2r0011111111111100 |
|
516 |
2r0000000000000000) |
|
517 |
maskArray: #( |
|
518 |
2r0000000000000000 |
|
519 |
2r0011111111100000 |
|
520 |
2r0011111111110000 |
|
521 |
2r0011111111111000 |
|
522 |
2r0011111111111100 |
|
523 |
2r0011111111111100 |
|
524 |
2r0011111111111100 |
|
525 |
2r0011111111111100 |
|
526 |
2r0011111111111100 |
|
527 |
2r0011111111111100 |
|
528 |
2r0011111111111100 |
|
529 |
2r0011111111111100 |
|
530 |
2r0011111111111100 |
|
531 |
2r0011111111111100 |
|
532 |
2r0011111111111100 |
|
533 |
2r0000000000000000) |
|
534 |
offset: -2@ -1). |
|
535 |
||
536 |
OriginCursor := |
|
537 |
(Cursor |
|
538 |
extent: 16@16 |
|
539 |
sourceArray: #( |
|
540 |
2r0000000000000000 |
|
541 |
2r0111111111111111 |
|
542 |
2r0111111111111111 |
|
543 |
2r0110000000000000 |
|
544 |
2r0110000000000000 |
|
545 |
2r0110000000000000 |
|
546 |
2r0110000000000000 |
|
547 |
2r0110000000000000 |
|
548 |
2r0110000000000000 |
|
549 |
2r0110000000000000 |
|
550 |
2r0110000000000000 |
|
551 |
2r0110000000000000 |
|
552 |
2r0110000000000000 |
|
553 |
2r0110000000000000 |
|
554 |
2r0110000000000000 |
|
555 |
2r0110000000000000) |
|
556 |
maskArray: #( |
|
557 |
2r1111111111111111 |
|
558 |
2r1111111111111111 |
|
559 |
2r1111111111111111 |
|
560 |
2r1111111111111111 |
|
561 |
2r1111000000000000 |
|
562 |
2r1111000000000000 |
|
563 |
2r1111000000000000 |
|
564 |
2r1111000000000000 |
|
565 |
2r1111000000000000 |
|
566 |
2r1111000000000000 |
|
567 |
2r1111000000000000 |
|
568 |
2r1111000000000000 |
|
569 |
2r1111000000000000 |
|
570 |
2r1111000000000000 |
|
571 |
2r1111000000000000 |
|
572 |
2r1111000000000000) |
|
573 |
offset: -1@ -1). |
|
574 |
OriginCursor setShape:#origin. |
|
575 |
||
576 |
TopRightCornerCursor := |
|
577 |
(Cursor |
|
578 |
extent: 16@16 |
|
579 |
sourceArray: #( |
|
580 |
2r0000000000000000 |
|
581 |
2r0111111111111111 |
|
582 |
2r0111111111111111 |
|
583 |
2r0000000000000110 |
|
584 |
2r0000000000000110 |
|
585 |
2r0000000000000110 |
|
586 |
2r0000000000000110 |
|
587 |
2r0000000000000110 |
|
588 |
2r0000000000000110 |
|
589 |
2r0000000000000110 |
|
590 |
2r0000000000000110 |
|
591 |
2r0000000000000110 |
|
592 |
2r0000000000000110 |
|
593 |
2r0000000000000110 |
|
594 |
2r0000000000000110 |
|
595 |
2r0000000000000110) |
|
596 |
maskArray: #( |
|
597 |
2r1111111111111111 |
|
598 |
2r1111111111111111 |
|
599 |
2r1111111111111111 |
|
600 |
2r1111111111111111 |
|
601 |
2r0000000000001111 |
|
602 |
2r0000000000001111 |
|
603 |
2r0000000000001111 |
|
604 |
2r0000000000001111 |
|
605 |
2r0000000000001111 |
|
606 |
2r0000000000001111 |
|
607 |
2r0000000000001111 |
|
608 |
2r0000000000001111 |
|
609 |
2r0000000000001111 |
|
610 |
2r0000000000001111 |
|
611 |
2r0000000000001111 |
|
612 |
2r0000000000001111) |
|
3071 | 613 |
offset: -14@ -1). |
3066 | 614 |
TopRightCornerCursor setShape:#topRightCorner. |
615 |
||
616 |
CornerCursor := |
|
617 |
(Cursor |
|
618 |
extent: 16@16 |
|
619 |
sourceArray: #( |
|
620 |
2r0000000000000110 |
|
621 |
2r0000000000000110 |
|
622 |
2r0000000000000110 |
|
623 |
2r0000000000000110 |
|
624 |
2r0000000000000110 |
|
625 |
2r0000000000000110 |
|
626 |
2r0000000000000110 |
|
627 |
2r0000000000000110 |
|
628 |
2r0000000000000110 |
|
629 |
2r0000000000000110 |
|
630 |
2r0000000000000110 |
|
631 |
2r0000000000000110 |
|
632 |
2r0000000000000110 |
|
633 |
2r1111111111111110 |
|
634 |
2r1111111111111110 |
|
635 |
2r0000000000000000) |
|
636 |
maskArray: #( |
|
637 |
2r0000000000001111 |
|
638 |
2r0000000000001111 |
|
639 |
2r0000000000001111 |
|
640 |
2r0000000000001111 |
|
641 |
2r0000000000001111 |
|
642 |
2r0000000000001111 |
|
643 |
2r0000000000001111 |
|
644 |
2r0000000000001111 |
|
645 |
2r0000000000001111 |
|
646 |
2r0000000000001111 |
|
647 |
2r0000000000001111 |
|
648 |
2r0000000000001111 |
|
649 |
2r1111111111111111 |
|
650 |
2r1111111111111111 |
|
651 |
2r1111111111111111 |
|
652 |
2r1111111111111111) |
|
653 |
offset: -14@ -14). |
|
654 |
CornerCursor setShape:#corner. |
|
655 |
||
656 |
BottomLeftCornerCursor := |
|
657 |
(Cursor |
|
658 |
extent: 16@16 |
|
659 |
sourceArray: #( |
|
660 |
2r0110000000000000 |
|
661 |
2r0110000000000000 |
|
662 |
2r0110000000000000 |
|
663 |
2r0110000000000000 |
|
664 |
2r0110000000000000 |
|
665 |
2r0110000000000000 |
|
666 |
2r0110000000000000 |
|
667 |
2r0110000000000000 |
|
668 |
2r0110000000000000 |
|
669 |
2r0110000000000000 |
|
670 |
2r0110000000000000 |
|
671 |
2r0110000000000000 |
|
672 |
2r0110000000000000 |
|
673 |
2r0111111111111111 |
|
674 |
2r0111111111111111 |
|
675 |
2r0000000000000000) |
|
676 |
maskArray: #( |
|
677 |
2r1111000000000000 |
|
678 |
2r1111000000000000 |
|
679 |
2r1111000000000000 |
|
680 |
2r1111000000000000 |
|
681 |
2r1111000000000000 |
|
682 |
2r1111000000000000 |
|
683 |
2r1111000000000000 |
|
684 |
2r1111000000000000 |
|
685 |
2r1111000000000000 |
|
686 |
2r1111000000000000 |
|
687 |
2r1111000000000000 |
|
688 |
2r1111000000000000 |
|
689 |
2r1111111111111111 |
|
690 |
2r1111111111111111 |
|
691 |
2r1111111111111111 |
|
692 |
2r1111111111111111) |
|
3071 | 693 |
offset: -1@ -14). |
3066 | 694 |
BottomLeftCornerCursor setShape:#bottomLeftCorner. |
695 |
||
696 |
ReadCursor := (Cursor |
|
697 |
extent: 16@16 |
|
698 |
sourceArray: #( |
|
699 |
2r0 |
|
700 |
2r0000110000000110 |
|
701 |
2r0001001000001001 |
|
702 |
2r0001001000001001 |
|
703 |
2r0010000000010000 |
|
704 |
2r0100000000100000 |
|
705 |
2r1111101111100000 |
|
706 |
2r1000010000100000 |
|
707 |
2r1000010000100000 |
|
708 |
2r1011010110100000 |
|
709 |
2r0111101111000000 |
|
710 |
2r0000000000000000 |
|
711 |
2r0000000000000000 |
|
712 |
2r0000000000000000 |
|
713 |
2r0000000000000000 |
|
714 |
2r0000000000000000) |
|
715 |
maskArray: #( |
|
716 |
2r0001111000001111 |
|
717 |
2r0001111000011111 |
|
718 |
2r0011111000011111 |
|
719 |
2r0011100000111100 |
|
720 |
2r0111000000111000 |
|
721 |
2r1111111111110000 |
|
722 |
2r1111111111110000 |
|
723 |
2r1111111111110000 |
|
724 |
2r1111111111110000 |
|
725 |
2r1111111111110000 |
|
726 |
2r1111111111100000 |
|
727 |
2r0111111111000000 |
|
728 |
2r0000000000000000 |
|
729 |
2r0000000000000000 |
|
730 |
2r0000000000000000 |
|
731 |
2r0000000000000000) |
|
732 |
offset: -5 @ -7). |
|
733 |
ReadCursor setShape:#read. |
|
734 |
||
735 |
WriteCursor := (Cursor |
|
736 |
extent: 16@16 |
|
737 |
sourceArray: #( |
|
738 |
2r0000000000000110 |
|
739 |
2r0000000000001111 |
|
740 |
2r0000000000010110 |
|
741 |
2r0000000000100100 |
|
742 |
2r0000000001001000 |
|
743 |
2r0000000010010000 |
|
744 |
2r0000000100100000 |
|
745 |
2r0000001001000011 |
|
746 |
2r0000010010000010 |
|
747 |
2r0000100100000110 |
|
748 |
2r0001001000001000 |
|
749 |
2r0010010000001000 |
|
750 |
2r0111100001001000 |
|
751 |
2r0101000010111000 |
|
752 |
2r0110000110000000 |
|
753 |
2r1111111100000000) |
|
754 |
maskArray: #( |
|
755 |
2r0000000000000111 |
|
756 |
2r0000000000001111 |
|
757 |
2r0000000000011110 |
|
758 |
2r0000000000111100 |
|
759 |
2r0000000001111000 |
|
760 |
2r0000000011110000 |
|
761 |
2r0000000111100001 |
|
762 |
2r0000001111000110 |
|
763 |
2r0000011110000110 |
|
764 |
2r0000111100001110 |
|
765 |
2r0001111000001100 |
|
766 |
2r0011110001001100 |
|
767 |
2r0111100011111000 |
|
768 |
2r0111000110111000 |
|
769 |
2r0111111110000000 |
|
770 |
2r1111111100000000) |
|
771 |
offset: 0@ -15). |
|
772 |
WriteCursor setShape:#write. |
|
773 |
||
774 |
WaitCursor := |
|
775 |
(Cursor |
|
776 |
extent: 16@16 |
|
777 |
sourceArray: #( |
|
778 |
2r1111111111111111 |
|
779 |
2r1000000000000001 |
|
780 |
2r0100000000000010 |
|
781 |
2r0010000000000100 |
|
782 |
2r0001110000111000 |
|
783 |
2r0000111101110000 |
|
784 |
2r0000011011100000 |
|
785 |
2r0000001111000000 |
|
786 |
2r0000001111000000 |
|
787 |
2r0000010110100000 |
|
788 |
2r0000100010010000 |
|
789 |
2r0001000110001000 |
|
790 |
2r0010001101000100 |
|
791 |
2r0100111111110010 |
|
792 |
2r1011111111111101 |
|
793 |
2r1111111111111111) |
|
794 |
maskArray: #( |
|
795 |
2r1111111111111111 |
|
796 |
2r1111111111111111 |
|
797 |
2r1111111111111111 |
|
798 |
2r0111111111111110 |
|
799 |
2r0011111111111100 |
|
800 |
2r0001111111111000 |
|
801 |
2r0000111111110000 |
|
802 |
2r0000011111100000 |
|
803 |
2r0000011111100000 |
|
804 |
2r0000111111110000 |
|
805 |
2r0001111111111000 |
|
806 |
2r0011111111111100 |
|
807 |
2r0111111111111110 |
|
808 |
2r1111111111111111 |
|
809 |
2r1111111111111111 |
|
810 |
2r1111111111111111) |
|
811 |
offset: -8@ -8). |
|
812 |
WaitCursor setShape:#wait. |
|
813 |
||
814 |
BlankCursor := |
|
815 |
(Cursor |
|
816 |
extent: 16@16 |
|
817 |
fromArray: #( |
|
818 |
2r0000000000000000 |
|
819 |
2r0000000000000000 |
|
820 |
2r0000000000000000 |
|
821 |
2r0000000000000000 |
|
822 |
2r0000000000000000 |
|
823 |
2r0000000000000000 |
|
824 |
2r0000000000000000 |
|
825 |
2r0000000000000000 |
|
826 |
2r0000000000000000 |
|
827 |
2r0000000000000000 |
|
828 |
2r0000000000000000 |
|
829 |
2r0000000000000000 |
|
830 |
2r0000000000000000 |
|
831 |
2r0000000000000000 |
|
832 |
2r0000000000000000 |
|
833 |
2r0000000000000000) |
|
834 |
offset: 0@0). |
|
835 |
BlankCursor setShape:#blank. |
|
836 |
||
837 |
XeqCursor := |
|
838 |
(Cursor |
|
839 |
extent: 16@16 |
|
840 |
sourceArray: #( |
|
841 |
2r1000000000010000 |
|
842 |
2r1100000000010000 |
|
843 |
2r1110000000111000 |
|
844 |
2r1111000111111111 |
|
845 |
2r1111100011000110 |
|
846 |
2r1111110001000100 |
|
847 |
2r1111111001111100 |
|
848 |
2r1111000001101100 |
|
849 |
2r1101100011000110 |
|
850 |
2r1001100010000010 |
|
851 |
2r0000110000000000 |
|
852 |
2r0000110000000000 |
|
853 |
2r0000011000000000 |
|
854 |
2r0000011000000000 |
|
855 |
2r0000001100000000 |
|
856 |
2r0000001100000000) |
|
857 |
maskArray: #( |
|
858 |
2r1100000000111000 |
|
859 |
2r1110000000111000 |
|
860 |
2r1111000111111111 |
|
861 |
2r1111100111111111 |
|
862 |
2r1111110011111111 |
|
863 |
2r1111111001111110 |
|
864 |
2r1111111101111100 |
|
865 |
2r1111100001111110 |
|
866 |
2r1101110011100111 |
|
867 |
2r1001110011000010 |
|
868 |
2r0000111000000000 |
|
869 |
2r0000111000000000 |
|
870 |
2r0000011100000000 |
|
871 |
2r0000011100000000 |
|
872 |
2r0000001110000000 |
|
873 |
2r0000001110000000) |
|
874 |
offset: 0@0). |
|
875 |
XeqCursor setShape:#execute. |
|
876 |
||
877 |
SquareCursor := |
|
878 |
(Cursor |
|
879 |
extent: 16@16 |
|
880 |
fromArray: #( |
|
881 |
2r0000000000000000 |
|
882 |
2r0000000000000000 |
|
883 |
2r0000000000000000 |
|
884 |
2r0000000000000000 |
|
885 |
2r0000000000000000 |
|
886 |
2r0000001111000000 |
|
887 |
2r0000001111000000 |
|
888 |
2r0000001111000000 |
|
889 |
2r0000001111000000 |
|
890 |
2r0000000000000000 |
|
891 |
2r0000000000000000 |
|
892 |
2r0000000000000000 |
|
893 |
2r0000000000000000 |
|
894 |
2r0000000000000000 |
|
895 |
2r0000000000000000 |
|
896 |
2r0000000000000000) |
|
897 |
offset: -8@ -8). |
|
898 |
SquareCursor setShape:#square. |
|
899 |
||
900 |
NormalCursor := |
|
901 |
(Cursor |
|
902 |
extent: 16@16 |
|
903 |
sourceArray: #( |
|
904 |
2r1000000000000000 |
|
905 |
2r1100000000000000 |
|
906 |
2r1110000000000000 |
|
907 |
2r1111000000000000 |
|
908 |
2r1111100000000000 |
|
909 |
2r1111110000000000 |
|
910 |
2r1111111000000000 |
|
911 |
2r1111100000000000 |
|
912 |
2r1111100000000000 |
|
913 |
2r1001100000000000 |
|
914 |
2r0000110000000000 |
|
915 |
2r0000110000000000 |
|
916 |
2r0000011000000000 |
|
917 |
2r0000011000000000 |
|
918 |
2r0000001100000000 |
|
919 |
2r0000001100000000) |
|
920 |
maskArray: #( |
|
921 |
2r1100000000000000 |
|
922 |
2r1110000000000000 |
|
923 |
2r1111000000000000 |
|
924 |
2r1111100000000000 |
|
925 |
2r1111110000000000 |
|
926 |
2r1111111000000000 |
|
927 |
2r1111111100000000 |
|
928 |
2r1111110000000000 |
|
929 |
2r1111110000000000 |
|
930 |
2r1001110000000000 |
|
931 |
2r0000111000000000 |
|
932 |
2r0000111000000000 |
|
933 |
2r0000011100000000 |
|
934 |
2r0000011100000000 |
|
935 |
2r0000001110000000 |
|
936 |
2r0000001110000000) |
|
937 |
offset: 0@0). |
|
938 |
NormalCursor setShape:#upLeftArrow. |
|
939 |
||
3111 | 940 |
UpDownArrowCursor := |
941 |
(Cursor |
|
942 |
extent: 16@16 |
|
943 |
sourceArray: #( |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
944 |
2r0000000110000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
945 |
2r0000001111000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
946 |
2r0000011111100000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
947 |
2r0000111111110000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
948 |
2r0000000110000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
949 |
2r0000000110000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
950 |
2r0000000000000000 |
3111 | 951 |
2r0111111111111110 |
952 |
2r0111111111111110 |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
953 |
2r0000000000000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
954 |
2r0000000110000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
955 |
2r0000000110000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
956 |
2r0000111111110000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
957 |
2r0000011111100000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
958 |
2r0000001111000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
959 |
2r0000000110000000) |
3111 | 960 |
maskArray: #( |
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
961 |
2r0000001111000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
962 |
2r0000011111100000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
963 |
2r0000111111110000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
964 |
2r0001111111111000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
965 |
2r0001111111111000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
966 |
2r0000001111000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
967 |
2r1111111111111111 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
968 |
2r1111111111111111 |
3111 | 969 |
2r1111111111111111 |
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
970 |
2r1111111111111111 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
971 |
2r0000001111000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
972 |
2r0001111111111000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
973 |
2r0001111111111000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
974 |
2r0000111111110000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
975 |
2r0000011111100000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
976 |
2r0000001111000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
977 |
|
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
978 |
) |
3111 | 979 |
offset: -7@ -7). |
980 |
UpDownArrowCursor setShape:#upDownArrow. |
|
981 |
||
982 |
LeftRightArrowCursor := |
|
983 |
(Cursor |
|
984 |
extent: 16@16 |
|
985 |
sourceArray: #( |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
986 |
2r0000000000000000 |
3111 | 987 |
2r0000000110000000 |
988 |
2r0000000110000000 |
|
989 |
2r0000000110000000 |
|
990 |
2r0001000110001000 |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
991 |
2r0011000110001100 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
992 |
2r0111000110001110 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
993 |
2r1111110110111111 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
994 |
2r1111110110111111 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
995 |
2r0111000110001110 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
996 |
2r0011000110001100 |
3111 | 997 |
2r0001000110001000 |
998 |
2r0000000110000000 |
|
999 |
2r0000000110000000 |
|
1000 |
2r0000000110000000 |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1001 |
2r0000000000000000) |
3111 | 1002 |
maskArray: #( |
1003 |
2r0000001111000000 |
|
1004 |
2r0000001111000000 |
|
1005 |
2r0000001111000000 |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1006 |
2r0001101111011000 |
3111 | 1007 |
2r0011101111011100 |
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1008 |
2r0111111111111110 |
3111 | 1009 |
2r1111111111111111 |
1010 |
2r1111111111111111 |
|
1011 |
2r1111111111111111 |
|
1012 |
2r1111111111111111 |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1013 |
2r0111111111111110 |
3111 | 1014 |
2r0011101111011100 |
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1015 |
2r0011101111011100 |
3111 | 1016 |
2r0000001111000000 |
1017 |
2r0000001111000000 |
|
1018 |
2r0000001111000000) |
|
1019 |
offset: -7@ -7). |
|
1020 |
LeftRightArrowCursor setShape:#leftRightArrow. |
|
1021 |
||
1022 |
||
3066 | 1023 |
CrossHairCursor := |
1024 |
(Cursor |
|
1025 |
extent: 16@16 |
|
1026 |
sourceArray: #( |
|
1027 |
2r0000000100000000 |
|
1028 |
2r0000000100000000 |
|
1029 |
2r0000000100000000 |
|
1030 |
2r0000000100000000 |
|
1031 |
2r0000000100000000 |
|
1032 |
2r0000000100000000 |
|
1033 |
2r0000000100000000 |
|
1034 |
2r1111111111111110 |
|
1035 |
2r0000000100000000 |
|
1036 |
2r0000000100000000 |
|
1037 |
2r0000000100000000 |
|
1038 |
2r0000000100000000 |
|
1039 |
2r0000000100000000 |
|
1040 |
2r0000000100000000 |
|
1041 |
2r0000000100000000 |
|
1042 |
2r0) |
|
1043 |
maskArray: #( |
|
1044 |
2r0000000110000000 |
|
1045 |
2r0000000110000000 |
|
1046 |
2r0000000110000000 |
|
1047 |
2r0000000110000000 |
|
1048 |
2r0000000110000000 |
|
1049 |
2r0000000110000000 |
|
1050 |
2r0000000110000000 |
|
1051 |
2r1111111111111110 |
|
1052 |
2r1111111111111110 |
|
1053 |
2r0000000110000000 |
|
1054 |
2r0000000110000000 |
|
1055 |
2r0000000110000000 |
|
1056 |
2r0000000110000000 |
|
1057 |
2r0000000110000000 |
|
1058 |
2r0000000110000000 |
|
1059 |
2r0) |
|
1060 |
offset: -7@ -7). |
|
3085
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1061 |
CrossHairCursor setShape:#crossHair. |
3066 | 1062 |
|
1063 |
CrossCursor := |
|
1064 |
(Cursor |
|
1065 |
extent: 16@16 |
|
1066 |
sourceArray: #( |
|
1067 |
2r0000000000000000 |
|
1068 |
2r0110000000001100 |
|
1069 |
2r0111000000011100 |
|
1070 |
2r0011100000111000 |
|
1071 |
2r0001110001110000 |
|
1072 |
2r0000111011100000 |
|
1073 |
2r0000011111000000 |
|
1074 |
2r0000001110000000 |
|
1075 |
2r0000011111000000 |
|
1076 |
2r0000111011100000 |
|
1077 |
2r0001110001110000 |
|
1078 |
2r0011100000111000 |
|
1079 |
2r0111000000011100 |
|
1080 |
2r0110000000001100 |
|
1081 |
2r0000000000000000 |
|
1082 |
2r0) |
|
1083 |
maskArray: #( |
|
1084 |
2r1110000000001110 |
|
1085 |
2r1111000000011110 |
|
1086 |
2r1111100000111110 |
|
1087 |
2r0111110001111100 |
|
1088 |
2r0011111011111000 |
|
1089 |
2r0001111111110000 |
|
1090 |
2r0000111111100000 |
|
1091 |
2r0000011111000000 |
|
1092 |
2r0000111111100000 |
|
1093 |
2r0001111111110000 |
|
1094 |
2r0011111011111000 |
|
1095 |
2r0111110001111100 |
|
1096 |
2r1111100000111110 |
|
1097 |
2r1111000000011110 |
|
1098 |
2r1110000000001110 |
|
1099 |
2r0) |
|
1100 |
offset: -7@ -7). |
|
1101 |
CrossCursor setShape:#cross. |
|
1102 |
||
1103 |
RightLimitCursor := |
|
1104 |
Cursor |
|
1105 |
extent: 16@16 |
|
1106 |
sourceArray: #( |
|
1107 |
2r0000000000000110 |
|
1108 |
2r0000000000000110 |
|
1109 |
2r0000000000000110 |
|
1110 |
2r0000001000000110 |
|
1111 |
2r0000001110000110 |
|
1112 |
2r0000001111100110 |
|
1113 |
2r0111111111111110 |
|
1114 |
2r0111111111111110 |
|
1115 |
2r0111111111111110 |
|
1116 |
2r0000001111100110 |
|
1117 |
2r0000001110000110 |
|
1118 |
2r0000001000000110 |
|
1119 |
2r0000000000000110 |
|
1120 |
2r0000000000000110 |
|
1121 |
2r0000000000000110 |
|
1122 |
2r0000000000000110) |
|
1123 |
maskArray: #( |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1124 |
2r0000000000001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1125 |
2r0000000000001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1126 |
2r0000000000001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1127 |
2r0000011100001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1128 |
2r0000011111001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1129 |
2r1111111111111111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1130 |
2r1111111111111111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1131 |
2r1111111111111111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1132 |
2r1111111111111111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1133 |
2r1111111111111111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1134 |
2r0000011111001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1135 |
2r0000011100001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1136 |
2r0000011000001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1137 |
2r0000000000001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1138 |
2r0000000000001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1139 |
2r0000000000001111) |
3066 | 1140 |
offset: -14@ -7. |
3071 | 1141 |
RightLimitCursor setShape:#rightLimitArrow. |
3066 | 1142 |
|
1143 |
LeftLimitCursor := |
|
1144 |
Cursor |
|
1145 |
extent: 16@16 |
|
1146 |
sourceArray: #( |
|
3071 | 1147 |
2r0110000000000000 |
1148 |
2r0110000000000000 |
|
1149 |
2r0110000000000000 |
|
1150 |
2r0110000001000000 |
|
1151 |
2r0110000111000000 |
|
1152 |
2r0110011111000000 |
|
1153 |
2r0111111111111110 |
|
1154 |
2r0111111111111110 |
|
1155 |
2r0111111111111110 |
|
1156 |
2r0110011111000000 |
|
1157 |
2r0110000111000000 |
|
1158 |
2r0110000001000000 |
|
1159 |
2r0110000000000000 |
|
1160 |
2r0110000000000000 |
|
1161 |
2r0110000000000000 |
|
1162 |
2r0110000000000000 |
|
1163 |
) |
|
3066 | 1164 |
maskArray: #( |
3071 | 1165 |
2r1111000000000000 |
1166 |
2r1111000000000000 |
|
1167 |
2r1111000000000000 |
|
1168 |
2r1111000011100000 |
|
1169 |
2r1111001111100000 |
|
1170 |
2r1111111111111111 |
|
1171 |
2r0111111111111111 |
|
1172 |
2r0111111111111111 |
|
1173 |
2r0111111111111111 |
|
1174 |
2r1111111111111111 |
|
1175 |
2r1111001111100000 |
|
1176 |
2r1111000011100000 |
|
1177 |
2r1111000000000000 |
|
1178 |
2r1111000000000000 |
|
1179 |
2r1111000000000000 |
|
1180 |
2r1111000000000000 |
|
1181 |
) |
|
1182 |
offset: -1@ -7. |
|
1183 |
LeftLimitCursor setShape:#leftLimitArrow. |
|
3066 | 1184 |
|
1185 |
UpLimitCursor := |
|
1186 |
Cursor |
|
1187 |
extent: 16@16 |
|
1188 |
sourceArray: #( |
|
3071 | 1189 |
2r0000000000000000 |
1190 |
2r1111111111111110 |
|
1191 |
2r1111111111111110 |
|
1192 |
2r0000000100000000 |
|
1193 |
2r0000001110000000 |
|
1194 |
2r0000011111000000 |
|
1195 |
2r0000111111100000 |
|
1196 |
2r0001111111110000 |
|
1197 |
2r0000001110000000 |
|
1198 |
2r0000001110000000 |
|
1199 |
2r0000001110000000 |
|
1200 |
2r0000001110000000 |
|
1201 |
2r0000001110000000 |
|
1202 |
2r0000001110000000 |
|
1203 |
2r0000000000000000 |
|
1204 |
2r0000000000000000 |
|
1205 |
) |
|
3066 | 1206 |
maskArray: #( |
3071 | 1207 |
2r1111111111111110 |
1208 |
2r1111111111111110 |
|
1209 |
2r1111111111111110 |
|
1210 |
2r1111111111111110 |
|
1211 |
2r0000011111000000 |
|
1212 |
2r0000111111100000 |
|
1213 |
2r0001111111110000 |
|
1214 |
2r0011111111111000 |
|
1215 |
2r0011111111111000 |
|
1216 |
2r0000011111000000 |
|
1217 |
2r0000011111000000 |
|
1218 |
2r0000011111000000 |
|
1219 |
2r0000011111000000 |
|
1220 |
2r0000011111000000 |
|
1221 |
2r0000011111000000 |
|
1222 |
2r0000000000000000 |
|
1223 |
) |
|
1224 |
offset: -7@ -1. |
|
1225 |
UpLimitCursor setShape:#upLimitArrow. |
|
3066 | 1226 |
|
1227 |
DownLimitCursor := |
|
1228 |
Cursor |
|
1229 |
extent: 16@16 |
|
1230 |
sourceArray: #( |
|
3071 | 1231 |
2r0000000000000000 |
1232 |
2r0000000000000000 |
|
1233 |
2r0000001110000000 |
|
1234 |
2r0000001110000000 |
|
1235 |
2r0000001110000000 |
|
1236 |
2r0000001110000000 |
|
1237 |
2r0000001110000000 |
|
1238 |
2r0000001110000000 |
|
1239 |
2r0001111111110000 |
|
1240 |
2r0000111111100000 |
|
1241 |
2r0000011111000000 |
|
1242 |
2r0000001110000000 |
|
1243 |
2r0000000100000000 |
|
1244 |
2r1111111111111110 |
|
1245 |
2r1111111111111110 |
|
1246 |
2r0000000000000000) |
|
3066 | 1247 |
maskArray: #( |
3071 | 1248 |
2r0000000000000000 |
1249 |
2r0000011111000000 |
|
1250 |
2r0000011111000000 |
|
1251 |
2r0000011111000000 |
|
1252 |
2r0000011111000000 |
|
1253 |
2r0000011111000000 |
|
1254 |
2r0000011111000000 |
|
1255 |
2r0011111111111000 |
|
1256 |
2r0011111111111000 |
|
1257 |
2r0001111111110000 |
|
1258 |
2r0000111111100000 |
|
1259 |
2r0000011111000000 |
|
1260 |
2r1111111111111110 |
|
1261 |
2r1111111111111110 |
|
1262 |
2r1111111111111110 |
|
1263 |
2r1111111111111110) |
|
1264 |
offset: -7@ -15. |
|
1265 |
DownLimitCursor setShape:#downLimitArrow. |
|
3066 | 1266 |
|
1267 |
LeftRightArrowCursor := |
|
1268 |
Cursor |
|
1269 |
extent: 16@16 |
|
1270 |
sourceArray: #( |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1271 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1272 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1273 |
2r0000000000000000 |
3066 | 1274 |
2r0000100000010000 |
1275 |
2r0001100000011000 |
|
1276 |
2r0011100000011100 |
|
1277 |
2r0111111111111110 |
|
1278 |
2r1111100000011111 |
|
1279 |
2r0111111111111110 |
|
1280 |
2r0011100000011100 |
|
1281 |
2r0001100000011000 |
|
1282 |
2r0000100000010000 |
|
1283 |
2r0000000000000000 |
|
1284 |
2r0000000000000000 |
|
1285 |
2r0000000000000000 |
|
1286 |
2r0000000000000000) |
|
1287 |
maskArray: #( |
|
1288 |
2r0000000000000000 |
|
1289 |
2r0000000000000000 |
|
1290 |
2r0000000000000000 |
|
1291 |
2r0000100000010000 |
|
1292 |
2r0001100000011000 |
|
1293 |
2r0011100000011100 |
|
1294 |
2r0111111111111110 |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1295 |
2r1111111111111111 |
3066 | 1296 |
2r0111111111111110 |
1297 |
2r0011100000011100 |
|
1298 |
2r0001100000011000 |
|
1299 |
2r0000100000010000 |
|
1300 |
2r0000000000000000 |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1301 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1302 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1303 |
2r0000000000000000) |
3071 | 1304 |
offset: -7@ -7. |
3066 | 1305 |
LeftRightArrowCursor setShape:#leftRightArrow. |
1306 |
||
1307 |
isWindows ifTrue:[ |
|
1308 |
"/ want it white-with black boundary |
|
1309 |
bits := #( |
|
1310 |
2r1111111111111111 |
|
1311 |
2r1111111111111111 |
|
1312 |
2r1111111111111111 |
|
1313 |
2r1111110111111111 |
|
1314 |
2r1111110001111111 |
|
1315 |
2r1111110000011111 |
|
1316 |
2r1000000000000111 |
|
1317 |
2r1000000000000001 |
|
1318 |
2r1000000000000111 |
|
1319 |
2r1111110000011111 |
|
1320 |
2r1111110001111111 |
|
1321 |
2r1111110111111111 |
|
1322 |
2r1111111111111111 |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1323 |
2r1111111111111111 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1324 |
2r1111111111111111 |
3066 | 1325 |
2r1111111111111111). |
1326 |
] ifFalse:[ |
|
1327 |
"/ want it black-with white boundary |
|
1328 |
bits := #( |
|
1329 |
2r0000000000000000 |
|
1330 |
2r0000000000000000 |
|
1331 |
2r0000000000000000 |
|
1332 |
2r0000001000000000 |
|
1333 |
2r0000001110000000 |
|
1334 |
2r0000001111100000 |
|
1335 |
2r0111111111111000 |
|
1336 |
2r0111111111111110 |
|
1337 |
2r0111111111111000 |
|
1338 |
2r0000001111100000 |
|
1339 |
2r0000001110000000 |
|
1340 |
2r0000001000000000 |
|
1341 |
2r0000000000000000 |
|
1342 |
2r0000000000000000 |
|
1343 |
2r0000000000000000 |
|
1344 |
2r0000000000000000). |
|
1345 |
]. |
|
1346 |
||
1347 |
MarkerCursor := |
|
1348 |
Cursor |
|
1349 |
extent: 16@16 |
|
1350 |
sourceArray:bits |
|
1351 |
maskArray: #( |
|
1352 |
2r0000000000000000 |
|
1353 |
2r0000000000000000 |
|
1354 |
2r0000000000000000 |
|
1355 |
2r0000011100000000 |
|
1356 |
2r0000011111000000 |
|
1357 |
2r1111111111110000 |
|
1358 |
2r1111111111111100 |
|
1359 |
2r1111111111111111 |
|
1360 |
2r1111111111111100 |
|
1361 |
2r1111111111110000 |
|
1362 |
2r0000011111000000 |
|
1363 |
2r0000011100000000 |
|
1364 |
2r0000011000000000 |
|
1365 |
2r0000000000000000 |
|
1366 |
2r0000000000000000 |
|
1367 |
2r0000000000000000) |
|
1368 |
offset: -14@ -7. |
|
1369 |
MarkerCursor setShape:#marker. |
|
1370 |
||
1371 |
isWindows ifTrue:[ |
|
1372 |
"/ want it white-with black boundary |
|
1373 |
bits := #( |
|
1374 |
2r1111111111111111 |
|
1375 |
2r1011111111111111 |
|
1376 |
2r1001111111111111 |
|
1377 |
2r1000111111111111 |
|
1378 |
2r1000011111111111 |
|
1379 |
2r1000001111111111 |
|
1380 |
2r1000000111111111 |
|
1381 |
2r1001111111111111 |
|
1382 |
2r1001111111111111 |
|
1383 |
2r1001111111111111 |
|
1384 |
2r1001111111111111 |
|
1385 |
2r1001111111111111 |
|
1386 |
2r1001111111111111 |
|
1387 |
2r1001111111111111 |
|
1388 |
2r1001111111111111 |
|
1389 |
2r1111111111111111). |
|
1390 |
] ifFalse:[ |
|
1391 |
"/ want it black-with white boundary |
|
1392 |
bits := #( |
|
1393 |
2r0000000000000000 |
|
1394 |
2r0100000000000000 |
|
1395 |
2r0110000000000000 |
|
1396 |
2r0111000000000000 |
|
1397 |
2r0111100000000000 |
|
1398 |
2r0111110000000000 |
|
1399 |
2r0111111000000000 |
|
1400 |
2r0110000000000000 |
|
1401 |
2r0110000000000000 |
|
1402 |
2r0110000000000000 |
|
1403 |
2r0110000000000000 |
|
1404 |
2r0110000000000000 |
|
1405 |
2r0110000000000000 |
|
1406 |
2r0110000000000000 |
|
1407 |
2r0110000000000000 |
|
1408 |
2r0000000000000000). |
|
1409 |
]. |
|
1410 |
||
1411 |
UpCursor := |
|
1412 |
Cursor |
|
1413 |
extent: 16@16 |
|
1414 |
sourceArray:bits |
|
1415 |
maskArray: #( |
|
1416 |
2r1100000000000000 |
|
1417 |
2r1110000000000000 |
|
1418 |
2r1111000000000000 |
|
1419 |
2r1111100000000000 |
|
1420 |
2r1111110000000000 |
|
1421 |
2r1111111000000000 |
|
1422 |
2r1111111100000000 |
|
1423 |
2r1111111100000000 |
|
1424 |
2r1111000000000000 |
|
1425 |
2r1111000000000000 |
|
1426 |
2r1111000000000000 |
|
1427 |
2r1111000000000000 |
|
1428 |
2r1111000000000000 |
|
1429 |
2r1111000000000000 |
|
1430 |
2r1111000000000000 |
|
1431 |
2r1111000000000000) |
|
1432 |
offset: -1@ -1. |
|
1433 |
UpCursor setShape:#upArrow. |
|
1434 |
||
1435 |
isWindows ifTrue:[ |
|
1436 |
"/ want it white-with black boundary |
|
1437 |
bits := #( |
|
1438 |
2r1111111111111111 |
|
1439 |
2r1111100111111111 |
|
1440 |
2r1111100111111111 |
|
1441 |
2r1111100111111111 |
|
1442 |
2r1111100111111111 |
|
1443 |
2r1111100111111111 |
|
1444 |
2r1111100111111111 |
|
1445 |
2r1111100111111111 |
|
1446 |
2r1111100111111111 |
|
1447 |
2r1000000111111111 |
|
1448 |
2r1100000111111111 |
|
1449 |
2r1110000111111111 |
|
1450 |
2r1111000111111111 |
|
1451 |
2r1111100111111111 |
|
1452 |
2r1111110111111111 |
|
1453 |
2r1111111111111111). |
|
1454 |
] ifFalse:[ |
|
1455 |
"/ want it black-with white boundary |
|
1456 |
bits := #( |
|
1457 |
2r0000000000000000 |
|
1458 |
2r0000011000000000 |
|
1459 |
2r0000011000000000 |
|
1460 |
2r0000011000000000 |
|
1461 |
2r0000011000000000 |
|
1462 |
2r0000011000000000 |
|
1463 |
2r0000011000000000 |
|
1464 |
2r0000011000000000 |
|
1465 |
2r0000011000000000 |
|
1466 |
2r0111111000000000 |
|
1467 |
2r0011111000000000 |
|
1468 |
2r0001111000000000 |
|
1469 |
2r0000111000000000 |
|
1470 |
2r0000011000000000 |
|
1471 |
2r0000001000000000 |
|
1472 |
2r0000000000000000). |
|
1473 |
]. |
|
1474 |
||
1475 |
DownCursor := |
|
1476 |
Cursor |
|
1477 |
extent: 16@16 |
|
1478 |
sourceArray:bits |
|
1479 |
maskArray: #( |
|
1480 |
2r0000111100000000 |
|
1481 |
2r0000111100000000 |
|
1482 |
2r0000111100000000 |
|
1483 |
2r0000111100000000 |
|
1484 |
2r0000111100000000 |
|
1485 |
2r0000111100000000 |
|
1486 |
2r0000111100000000 |
|
1487 |
2r0000111100000000 |
|
1488 |
2r1111111100000000 |
|
1489 |
2r1111111100000000 |
|
1490 |
2r0111111100000000 |
|
1491 |
2r0011111100000000 |
|
1492 |
2r0001111100000000 |
|
1493 |
2r0000111100000000 |
|
1494 |
2r0000011100000000 |
|
1495 |
2r0000001100000000) |
|
1496 |
offset: -7@ -15. |
|
1497 |
DownCursor setShape:#downArrow. |
|
1498 |
||
1499 |
isWindows ifTrue:[ |
|
1500 |
"/ want it white-with black boundary |
|
1501 |
bits := #( |
|
1502 |
2r1111111111111111 |
|
1503 |
2r1000000000000001 |
|
1504 |
2r1100000000000001 |
|
1505 |
2r1110000111111111 |
|
1506 |
2r1111000111111111 |
|
1507 |
2r1111100111111111 |
|
1508 |
2r1111110111111111 |
|
1509 |
2r1111111111111111 |
|
1510 |
2r1111111111111111 |
|
1511 |
2r1111111111111111 |
|
1512 |
2r1111111111111111 |
|
1513 |
2r1111111111111111 |
|
1514 |
2r1111111111111111 |
|
1515 |
2r1111111111111111 |
|
1516 |
2r1111111111111111 |
|
1517 |
2r1111111111111111). |
|
1518 |
] ifFalse:[ |
|
1519 |
"/ want it black-with white boundary |
|
1520 |
bits := #( |
|
1521 |
2r0000000000000000 |
|
1522 |
2r0111111111111110 |
|
1523 |
2r0011111111111110 |
|
1524 |
2r0001111000000000 |
|
1525 |
2r0000111000000000 |
|
1526 |
2r0000011000000000 |
|
1527 |
2r0000001000000000 |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1528 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1529 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1530 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1531 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1532 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1533 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1534 |
2r0000000000000000 |
3066 | 1535 |
2r0000000000000000 |
1536 |
2r0000000000000000). |
|
1537 |
]. |
|
1538 |
||
1539 |
LeftCursor := |
|
1540 |
Cursor |
|
1541 |
extent: 16@16 |
|
1542 |
sourceArray:bits |
|
1543 |
maskArray: #( |
|
1544 |
2r1111111111111111 |
|
1545 |
2r1111111111111111 |
|
1546 |
2r0111111111111111 |
|
1547 |
2r0011111111111111 |
|
1548 |
2r0001111100000000 |
|
1549 |
2r0000111100000000 |
|
1550 |
2r0000011100000000 |
|
1551 |
2r0000001100000000 |
|
1552 |
2r0000000000000000 |
|
1553 |
2r0000000000000000 |
|
1554 |
2r0000000000000000 |
|
1555 |
2r0000000000000000 |
|
1556 |
2r0000000000000000 |
|
1557 |
2r0000000000000000 |
|
1558 |
2r0000000000000000 |
|
1559 |
2r0000000000000000) |
|
1560 |
offset: -1 @ -1. |
|
1561 |
LeftCursor setShape:#leftArrow. |
|
1562 |
||
1563 |
isWindows ifTrue:[ |
|
1564 |
"/ want it white-with black boundary |
|
1565 |
bits := #( |
|
1566 |
2r1111111111111111 |
|
1567 |
2r1111111110111111 |
|
1568 |
2r1111111110011111 |
|
1569 |
2r1111111110001111 |
|
1570 |
2r1111111110000111 |
|
1571 |
2r1000000000000011 |
|
1572 |
2r1000000000000001 |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1573 |
2r1111111111111111 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1574 |
2r1111111111111111 |
3066 | 1575 |
2r1111111111111111 |
1576 |
2r1111111111111111 |
|
1577 |
2r1111111111111111 |
|
1578 |
2r1111111111111111 |
|
1579 |
2r1111111111111111 |
|
1580 |
2r1111111111111111 |
|
1581 |
2r1111111111111111). |
|
1582 |
] ifFalse:[ |
|
1583 |
"/ want it black-with white boundary |
|
1584 |
bits := #( |
|
1585 |
2r0000000000000000 |
|
1586 |
2r0000000001000000 |
|
1587 |
2r0000000001100000 |
|
1588 |
2r0000000001110000 |
|
1589 |
2r0000000001111000 |
|
1590 |
2r0111111111111100 |
|
1591 |
2r0111111111111110 |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1592 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1593 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1594 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1595 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1596 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1597 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1598 |
2r0000000000000000 |
3066 | 1599 |
2r0000000000000000 |
1600 |
2r0000000000000000). |
|
1601 |
]. |
|
1602 |
||
1603 |
RightCursor := |
|
1604 |
Cursor |
|
1605 |
extent: 16@16 |
|
1606 |
sourceArray: bits |
|
1607 |
maskArray: #( |
|
1608 |
2r0000000011000000 |
|
1609 |
2r0000000011100000 |
|
1610 |
2r0000000011110000 |
|
1611 |
2r0000000011111000 |
|
1612 |
2r1111111111111100 |
|
1613 |
2r1111111111111110 |
|
1614 |
2r1111111111111111 |
|
1615 |
2r1111111111111111 |
|
1616 |
2r0000000000000000 |
|
1617 |
2r0000000000000000 |
|
1618 |
2r0000000000000000 |
|
1619 |
2r0000000000000000 |
|
1620 |
2r0000000000000000 |
|
1621 |
2r0000000000000000 |
|
1622 |
2r0000000000000000 |
|
1623 |
2r0000000000000000) |
|
1624 |
offset: -15@ -6. |
|
1625 |
RightCursor setShape:#rightArrow. |
|
1626 |
||
1627 |
isWindows ifTrue:[ |
|
1628 |
"/ want it white-with black boundary |
|
1629 |
bits := #( |
|
1630 |
2r1111111111111111 |
|
1631 |
2r1111111011111111 |
|
1632 |
2r1111111011111111 |
|
1633 |
2r1111110001111111 |
|
1634 |
2r1111110001111111 |
|
1635 |
2r1111100000111111 |
|
1636 |
2r1111100000111111 |
|
1637 |
2r1111000000011111 |
|
1638 |
2r1111000000011111 |
|
1639 |
2r1110000000001111 |
|
1640 |
2r1111110001111111 |
|
1641 |
2r1111110001111111 |
|
1642 |
2r1111110001111111 |
|
1643 |
2r1111110001111111 |
|
1644 |
2r1111110001111111 |
|
1645 |
2r1111111111111111). |
|
1646 |
] ifFalse:[ |
|
1647 |
"/ want it black-with white boundary |
|
1648 |
bits := #( |
|
1649 |
2r0000000000000000 |
|
1650 |
2r0000000100000000 |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1651 |
2r0000000100000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1652 |
2r0000001110000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1653 |
2r0000001110000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1654 |
2r0000011111000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1655 |
2r0000011111000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1656 |
2r0000111111100000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1657 |
2r0000111111100000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1658 |
2r0001111111110000 |
3066 | 1659 |
2r0000001110000000 |
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1660 |
2r0000001110000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1661 |
2r0000001110000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1662 |
2r0000001110000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1663 |
2r0000001110000000 |
3066 | 1664 |
2r0000000000000000). |
1665 |
]. |
|
1666 |
||
1667 |
XMarkerCursor := |
|
1668 |
Cursor |
|
1669 |
extent: 16@16 |
|
1670 |
sourceArray: bits |
|
1671 |
maskArray: #( |
|
1672 |
2r0000000100000000 |
|
1673 |
2r0000001110000000 |
|
1674 |
2r0000001110000000 |
|
1675 |
2r0000011111000000 |
|
1676 |
2r0000011111000000 |
|
1677 |
2r0000111111100000 |
|
1678 |
2r0000111111100000 |
|
1679 |
2r0001111111110000 |
|
1680 |
2r0001111111110000 |
|
1681 |
2r0011111111111000 |
|
1682 |
2r0011111111111000 |
|
1683 |
2r0000011111000000 |
|
1684 |
2r0000011111000000 |
|
1685 |
2r0000011111000000 |
|
1686 |
2r0000011111000000 |
|
1687 |
2r0000011111000000) |
|
1688 |
offset: -7@ -1. |
|
1689 |
RightCursor setShape:#xMarker. |
|
1690 |
||
1691 |
FourWayCursor := |
|
1692 |
Cursor |
|
1693 |
extent: 16@16 |
|
1694 |
sourceArray: #( |
|
1695 |
2r0000000100000000 |
|
1696 |
2r0000001110000000 |
|
1697 |
2r0000011111000000 |
|
1698 |
2r0000111111100000 |
|
1699 |
2r0001001110010000 |
|
1700 |
2r0011001110011000 |
|
1701 |
2r0111111111111100 |
|
1702 |
2r1111111111111110 |
|
1703 |
2r0111111111111100 |
|
1704 |
2r0011001110011000 |
|
1705 |
2r0001001110010000 |
|
1706 |
2r0000111111100000 |
|
1707 |
2r0000011111000000 |
|
1708 |
2r0000001110000000 |
|
1709 |
2r0000000100000000 |
|
1710 |
2r0000000000000000) |
|
1711 |
maskArray: #( |
|
1712 |
2r0000001110000000 |
|
1713 |
2r0000011111000000 |
|
1714 |
2r0000111111100000 |
|
1715 |
2r0001111111110000 |
|
1716 |
2r0010111111101000 |
|
1717 |
2r0111111111111100 |
|
1718 |
2r1111111111111110 |
|
1719 |
2r1111111111111110 |
|
1720 |
2r1111111111111110 |
|
1721 |
2r0111111111111100 |
|
1722 |
2r0010111111101000 |
|
1723 |
2r0001111111110000 |
|
1724 |
2r0000111111100000 |
|
1725 |
2r0000011111000000 |
|
1726 |
2r0000001110000000 |
|
1727 |
2r0000000000000000) |
|
1728 |
offset: -7@ -7. |
|
1729 |
FourWayCursor setShape:#fourWay. |
|
1730 |
||
1731 |
ThumbsUpCursor := (Cursor |
|
1732 |
extent: 16@16 |
|
1733 |
sourceArray: #( |
|
1734 |
2r0000000000100000 |
|
1735 |
2r0000000001010000 |
|
1736 |
2r0000000010010000 |
|
1737 |
2r0000000011110000 |
|
1738 |
2r0000000100010000 |
|
1739 |
2r0000000100010000 |
|
1740 |
2r0001111100011000 |
|
1741 |
2r0010000100000110 |
|
1742 |
2r0100000000000000 |
|
1743 |
2r0111111000000000 |
|
1744 |
2r0100000000000000 |
|
1745 |
2r0111111000000000 |
|
1746 |
2r0100000000000000 |
|
1747 |
2r0011111000001110 |
|
1748 |
2r0001000000010000 |
|
1749 |
2r0001111111100000) |
|
1750 |
maskArray: #( |
|
1751 |
2r0000000000100000 |
|
1752 |
2r0000000001110000 |
|
1753 |
2r0000000011110000 |
|
1754 |
2r0000000011110000 |
|
1755 |
2r0000000111110000 |
|
1756 |
2r0000000111110000 |
|
1757 |
2r0001111111111000 |
|
1758 |
2r0011111111111110 |
|
1759 |
2r0111111111111110 |
|
1760 |
2r0111111111111110 |
|
1761 |
2r0111111111111110 |
|
1762 |
2r0111111111111110 |
|
1763 |
2r0111111111111110 |
|
1764 |
2r0011111111111110 |
|
1765 |
2r0001111111110000 |
|
1766 |
2r0001111111100000) |
|
1767 |
offset: -8@ 0). |
|
1768 |
ThumbsUpCursor setShape:#thumbsUp. |
|
1769 |
||
1770 |
CaretCursor := (Cursor |
|
1771 |
extent: 16@16 |
|
1772 |
sourceArray: #( |
|
1773 |
2r0000000000000000 |
|
1774 |
2r0000000110000000 |
|
1775 |
2r0000000110000000 |
|
1776 |
2r0000001111000000 |
|
1777 |
2r0000011111100000 |
|
1778 |
2r0000011001100000 |
|
1779 |
2r0000000000000000 |
|
1780 |
2r0000000000000000 |
|
1781 |
2r0000000000000000 |
|
1782 |
2r0000000000000000 |
|
1783 |
2r0000000000000000 |
|
1784 |
2r0000000000000000 |
|
1785 |
2r0000000000000000 |
|
1786 |
2r0000000000000000 |
|
1787 |
2r0000000000000000 |
|
1788 |
2r0000000000000000) |
|
1789 |
maskArray: #( |
|
1790 |
2r0000000110000000 |
|
1791 |
2r0000001111000000 |
|
1792 |
2r0000001111100000 |
|
1793 |
2r0000011111100000 |
|
1794 |
2r0000111111110000 |
|
1795 |
2r0000111111110000 |
|
1796 |
2r0000011001100000 |
|
1797 |
2r0000000000000000 |
|
1798 |
2r0000000000000000 |
|
1799 |
2r0000000000000000 |
|
1800 |
2r0000000000000000 |
|
1801 |
2r0000000000000000 |
|
1802 |
2r0000000000000000 |
|
1803 |
2r0000000000000000 |
|
1804 |
2r0000000000000000 |
|
1805 |
2r0000000000000000) |
|
1806 |
offset: -8@0). |
|
1807 |
CaretCursor setShape:#caret. |
|
1808 |
||
1809 |
ThumbsDownCursor := (Cursor |
|
1810 |
extent: 16@16 |
|
1811 |
sourceArray: #( |
|
1812 |
2r0001111111100000 |
|
1813 |
2r0001000000010000 |
|
1814 |
2r0011111000001110 |
|
1815 |
2r0100000000000000 |
|
1816 |
2r0111111000000000 |
|
1817 |
2r0100000000000000 |
|
1818 |
2r0111111000000000 |
|
1819 |
2r0100000000000000 |
|
1820 |
2r0010000100000110 |
|
1821 |
2r0001111100011000 |
|
1822 |
2r0000000100010000 |
|
1823 |
2r0000000100010000 |
|
1824 |
2r0000000011110000 |
|
1825 |
2r0000000010010000 |
|
1826 |
2r0000000001010000 |
|
1827 |
2r0000000000100000) |
|
1828 |
||
1829 |
maskArray: #( |
|
1830 |
2r0001111111100000 |
|
1831 |
2r0001111111110000 |
|
1832 |
2r0011111111111110 |
|
1833 |
2r0111111111111110 |
|
1834 |
2r0111111111111110 |
|
1835 |
2r0111111111111110 |
|
1836 |
2r0111111111111110 |
|
1837 |
2r0111111111111110 |
|
1838 |
2r0011111111111110 |
|
1839 |
2r0001111111111000 |
|
1840 |
2r0000000111110000 |
|
1841 |
2r0000000111110000 |
|
1842 |
2r0000000011110000 |
|
1843 |
2r0000000011110000 |
|
1844 |
2r0000000001110000 |
|
1845 |
2r0000000000100000) |
|
3462 | 1846 |
offset: -8@ -15 "-16"). |
3066 | 1847 |
ThumbsDownCursor setShape:#thumbsDown. |
1848 |
||
1849 |
StopCursor := (Cursor |
|
1850 |
extent: 16@16 |
|
1851 |
sourceArray: #( |
|
1852 |
2r0000000000000000 |
|
1853 |
2r0000011111000000 |
|
1854 |
2r0001111111110000 |
|
1855 |
2r0011111111111000 |
|
1856 |
2r0011111111111000 |
|
1857 |
2r0111111111111100 |
|
1858 |
2r0111111111111100 |
|
1859 |
2r0100000000000100 |
|
1860 |
2r0100000000000100 |
|
1861 |
2r0111111111111100 |
|
1862 |
2r0111111111111100 |
|
1863 |
2r0011111111111000 |
|
1864 |
2r0011111111111000 |
|
1865 |
2r0001111111110000 |
|
1866 |
2r0000011111000000 |
|
1867 |
2r0000000000000000 |
|
1868 |
) |
|
1869 |
maskArray: #( |
|
1870 |
2r0000011111000000 |
|
1871 |
2r0001111111110000 |
|
1872 |
2r0011111111111000 |
|
1873 |
2r0111111111111100 |
|
1874 |
2r0111111111111100 |
|
1875 |
2r1111111111111110 |
|
1876 |
2r1111111111111110 |
|
1877 |
2r1111111111111110 |
|
1878 |
2r1111111111111110 |
|
1879 |
2r1111111111111110 |
|
1880 |
2r1111111111111110 |
|
1881 |
2r0111111111111100 |
|
1882 |
2r0111111111111100 |
|
1883 |
2r0011111111111000 |
|
1884 |
2r0001111111110000 |
|
1885 |
2r0000011111000000 |
|
1886 |
) |
|
1887 |
offset: -8 @ -8). |
|
1888 |
StopCursor setShape:#stop. |
|
1889 |
||
1890 |
EyeCursor := (Cursor |
|
1891 |
extent: 16@16 |
|
1892 |
sourceArray: #( |
|
1893 |
2r0000000000000000 |
|
1894 |
2r0000000000000000 |
|
1895 |
2r0000000000000000 |
|
1896 |
2r0000011111000000 |
|
1897 |
2r0001111111110000 |
|
1898 |
2r0011000000011000 |
|
1899 |
2r0110001110001100 |
|
1900 |
2r1100011111000110 |
|
1901 |
2r1100011111000110 |
|
1902 |
2r0110001110001100 |
|
1903 |
2r0011000000011000 |
|
1904 |
2r0001111111110000 |
|
1905 |
2r0000011111000000 |
|
1906 |
2r0000000000000000 |
|
1907 |
2r0000000000000000 |
|
1908 |
2r0000000000000000 |
|
1909 |
) |
|
1910 |
maskArray: #( |
|
1911 |
2r0000000000000000 |
|
1912 |
2r0000000000000000 |
|
1913 |
2r0000000000000000 |
|
1914 |
2r0000011111000000 |
|
1915 |
2r0001111111110000 |
|
1916 |
2r0011111111111000 |
|
1917 |
2r0111111111111100 |
|
1918 |
2r1111111111111110 |
|
1919 |
2r1111111111111110 |
|
1920 |
2r0111111111111100 |
|
1921 |
2r0011111111111000 |
|
1922 |
2r0001111111110000 |
|
1923 |
2r0000011111000000 |
|
1924 |
2r0000000000000000 |
|
1925 |
2r0000000000000000 |
|
1926 |
2r0000000000000000 |
|
1927 |
) |
|
1928 |
offset: -8 @ -8). |
|
1929 |
EyeCursor setShape:#eye. |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1930 |
|
3201 | 1931 |
ClosedEyeCursor := (Cursor |
1932 |
extent: 16@16 |
|
1933 |
sourceArray: #( |
|
1934 |
2r0000000000000000 |
|
1935 |
2r0000000000000000 |
|
1936 |
2r0000000000000000 |
|
1937 |
2r0000011111000000 |
|
1938 |
2r0001111111110000 |
|
1939 |
2r0011111111111000 |
|
1940 |
2r0111111111111100 |
|
1941 |
2r1111111111111110 |
|
1942 |
2r1111111111111110 |
|
1943 |
2r0111111111111100 |
|
1944 |
2r0011111111111000 |
|
1945 |
2r0001111111110000 |
|
1946 |
2r0000011111000000 |
|
1947 |
2r0000000000000000 |
|
1948 |
2r0000000000000000 |
|
1949 |
2r0000000000000000 |
|
1950 |
) |
|
1951 |
maskArray: #( |
|
1952 |
2r0000000000000000 |
|
1953 |
2r0000000000000000 |
|
1954 |
2r0000000000000000 |
|
1955 |
2r0000011111000000 |
|
1956 |
2r0001111111110000 |
|
1957 |
2r0011111111111000 |
|
1958 |
2r0111111111111100 |
|
1959 |
2r1111111111111110 |
|
1960 |
2r1111111111111110 |
|
1961 |
2r0111111111111100 |
|
1962 |
2r0011111111111000 |
|
1963 |
2r0001111111110000 |
|
1964 |
2r0000011111000000 |
|
1965 |
2r0000000000000000 |
|
1966 |
2r0000000000000000 |
|
1967 |
2r0000000000000000 |
|
1968 |
) |
|
1969 |
offset: -8 @ -8). |
|
1970 |
ClosedEyeCursor setShape:#eyeClosed. |
|
1971 |
||
3085
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1972 |
QuestionMarkCursor := (Cursor |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1973 |
extent: 16@16 |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1974 |
sourceArray: #( |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1975 |
2r0000000000000000 |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1976 |
2r0000000000000000 |
3114 | 1977 |
2r0000001111000000 |
3085
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1978 |
2r0000111111110000 |
3114 | 1979 |
2r0000110000111000 |
1980 |
2r0000000000011000 |
|
1981 |
2r0000000000011000 |
|
3085
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1982 |
2r0000000000011000 |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1983 |
2r0000000000110000 |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1984 |
2r0000000001100000 |
3643 | 1985 |
2r0000000110000000 |
3085
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1986 |
2r0000000110000000 |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1987 |
2r0000000000000000 |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1988 |
2r0000000110000000 |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1989 |
2r0000000110000000 |
3114 | 1990 |
2r0000000000000000 |
3085
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1991 |
) |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1992 |
maskArray: #( |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1993 |
2r0000000000000000 |
3643 | 1994 |
2r0000011111000000 |
1995 |
2r0000111111100000 |
|
1996 |
2r0001111111111000 |
|
1997 |
2r0001111111111100 |
|
1998 |
2r0001111000111100 |
|
1999 |
2r0000000000111100 |
|
2000 |
2r0000000000111100 |
|
2001 |
2r0000000001111000 |
|
2002 |
2r0000000011110000 |
|
3114 | 2003 |
2r0000001111000000 |
3643 | 2004 |
2r0000001111000000 |
2005 |
2r0000001111000000 |
|
2006 |
2r0000001111000000 |
|
2007 |
2r0000001111000000 |
|
2008 |
2r0000001111000000 |
|
3085
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
2009 |
) |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
2010 |
offset: -8 @ -8). |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
2011 |
QuestionMarkCursor setShape:#questionMark. |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
2012 |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2013 |
"/ if possible, preallocate them on the default display |
3086
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2014 |
|
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2015 |
"/ cg: no, do not do this here; |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2016 |
"/ defaultFG / defaultBG is not yet initialized. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2017 |
|
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2018 |
"/ device notNil ifTrue:[ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2019 |
"/ FourWayCursor notNil ifTrue:[FourWayCursor := FourWayCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2020 |
"/ LeftCursor notNil ifTrue:[LeftCursor := LeftCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2021 |
"/ RightCursor notNil ifTrue:[RightCursor := RightCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2022 |
"/ XMarkerCursor notNil ifTrue:[XMarkerCursor := XMarkerCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2023 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2024 |
"/ OriginCursor notNil ifTrue:[OriginCursor := OriginCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2025 |
"/ CornerCursor notNil ifTrue:[CornerCursor := CornerCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2026 |
"/ TopRightCornerCursor notNil ifTrue:[TopRightCornerCursor := TopRightCornerCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2027 |
"/ BottomLeftCornerCursor notNil ifTrue:[BottomLeftCornerCursor := BottomLeftCornerCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2028 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2029 |
"/ LeftLimitCursor notNil ifTrue:[LeftLimitCursor := LeftLimitCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2030 |
"/ RightLimitCursor notNil ifTrue:[RightLimitCursor := RightLimitCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2031 |
"/ DownLimitCursor notNil ifTrue:[DownLimitCursor := DownLimitCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2032 |
"/ UpLimitCursor notNil ifTrue:[UpLimitCursor := UpLimitCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2033 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2034 |
"/ ReadCursor notNil ifTrue:[ReadCursor := ReadCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2035 |
"/ WriteCursor notNil ifTrue:[WriteCursor := WriteCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2036 |
"/ WaitCursor notNil ifTrue:[WaitCursor := WaitCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2037 |
"/ XeqCursor notNil ifTrue:[XeqCursor := XeqCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2038 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2039 |
"/ SquareCursor notNil ifTrue:[SquareCursor := SquareCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2040 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2041 |
"/ NormalCursor notNil ifTrue:[NormalCursor := NormalCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2042 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2043 |
"/ CrossHairCursor notNil ifTrue:[CrossHairCursor := CrossHairCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2044 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2045 |
"/ MarkerCursor notNil ifTrue:[MarkerCursor := MarkerCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2046 |
"/ UpCursor notNil ifTrue:[UpCursor := UpCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2047 |
"/ DownCursor notNil ifTrue:[DownCursor := DownCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2048 |
"/ LeftCursor notNil ifTrue:[LeftCursor := LeftCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2049 |
"/ RightCursor notNil ifTrue:[RightCursor := RightCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2050 |
"/ XMarkerCursor notNil ifTrue:[XMarkerCursor := XMarkerCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2051 |
"/ CaretCursor notNil ifTrue:[CaretCursor := CaretCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2052 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2053 |
"/ ThumbsUpCursor notNil ifTrue:[ThumbsUpCursor := ThumbsUpCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2054 |
"/ ThumbsDownCursor notNil ifTrue:[ThumbsDownCursor := ThumbsDownCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2055 |
"/ StopCursor notNil ifTrue:[StopCursor := StopCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2056 |
"/ EyeCursor notNil ifTrue:[EyeCursor := EyeCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2057 |
"/ QuestionMarkCursor notNil ifTrue:[QuestionMarkCursor := QuestionMarkCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2058 |
"/ ]. |
1495 | 2059 |
|
1564 | 2060 |
" |
3462 | 2061 |
HandCursor := nil. |
2062 |
Cursor initializeNewCursors. |
|
1564 | 2063 |
" |
1495 | 2064 |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
2065 |
"Modified: / 13.12.1999 / 12:25:48 / cg" |
0 | 2066 |
! ! |
2067 |
||
1140 | 2068 |
!Cursor class methodsFor:'instance creation'! |
0 | 2069 |
|
2070 |
extent:extent fromArray:array offset:offset |
|
1934 | 2071 |
"ST-80 compatibility |
2072 |
create a new bitmap cursor from bits in the array argument. |
|
2073 |
Here, the offset argument defines the hotSpot, but is given |
|
2074 |
as the negative of the hotSpot coordinate within the cursor (sigh - ST80 compatibility)." |
|
2075 |
||
2076 |
^ self |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2077 |
extent:extent sourceArray:array maskArray:array offset:offset |
1934 | 2078 |
|
2079 |
"Modified: 22.10.1997 / 23:59:41 / cg" |
|
0 | 2080 |
! |
2081 |
||
2082 |
extent:extent sourceArray:sourceArray maskArray:maskArray offset:offset |
|
2083 |
"create a new bitmap cursor with mask from bits in sourceArray and |
|
1934 | 2084 |
maskArray. |
2085 |
The offset argument defines the hotSpot, but is given as the negative |
|
2086 |
of the hotSpots coordinate within the cursor (sigh - ST80 compatibility)" |
|
0 | 2087 |
|
2088 |
|sourceForm maskForm| |
|
2089 |
||
2090 |
sourceForm := Form extent:extent fromArray:sourceArray offset:offset. |
|
1934 | 2091 |
sourceArray ~~ maskArray ifTrue:[ |
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2092 |
maskForm := Form extent:extent fromArray:maskArray offset:offset. |
1934 | 2093 |
] ifFalse:[ |
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2094 |
maskForm := sourceForm |
1934 | 2095 |
]. |
0 | 2096 |
^ self sourceForm:sourceForm maskForm:maskForm hotSpot:(offset negated) |
1934 | 2097 |
|
2098 |
"Modified: 22.10.1997 / 23:58:36 / cg" |
|
0 | 2099 |
! |
2100 |
||
577 | 2101 |
fileCursorNamed:cursorName |
2102 |
"return a cursor read from the files 'cursorName_bits.bit' and |
|
1934 | 2103 |
'cursorName_mask.bit' - return nil if either file does not exist. |
2104 |
This method is going to be obsoleted in the future." |
|
2105 |
||
3054
4268251e77a2
try bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
2106 |
|cursorBits maskBits| |
1934 | 2107 |
|
2108 |
self obsoleteMethodWarning. |
|
2109 |
||
3099 | 2110 |
cursorBits := Smalltalk imageFromFileNamed:(cursorName , '_bits.bit') forClass:self. |
577 | 2111 |
cursorBits notNil ifTrue:[ |
3099 | 2112 |
maskBits := Smalltalk imageFromFileNamed:(cursorName , '_mask.bit') forClass:self. |
3054
4268251e77a2
try bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
2113 |
maskBits notNil ifTrue:[ |
4268251e77a2
try bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
2114 |
^ self sourceForm:cursorBits maskForm:maskBits |
4268251e77a2
try bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
2115 |
] |
577 | 2116 |
]. |
2117 |
^ nil |
|
1140 | 2118 |
|
1934 | 2119 |
"Modified: 23.10.1997 / 00:02:07 / cg" |
577 | 2120 |
! |
2121 |
||
1414 | 2122 |
fromImage:anImage |
2123 |
"return a new cursor. |
|
2124 |
Source- and (optional) mask-Bits are taken from anImage; |
|
1934 | 2125 |
The cursors hotSpot is the center of the image." |
2126 |
||
2127 |
^ self |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2128 |
fromImage:anImage hotSpot:(anImage center) |
1414 | 2129 |
|
2130 |
" |
|
2131 |
|i c| |
|
2132 |
||
2133 |
i := Image fromFile:'bitmaps/xpmBitmaps/cursors/ul_br_arrow.xpm'. |
|
2134 |
c := Cursor fromImage:i. |
|
2135 |
WindowGroup activeGroup |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2136 |
withCursor:c |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2137 |
do:[(Delay forSeconds:5)wait] |
1414 | 2138 |
" |
2139 |
||
1934 | 2140 |
"Modified: 22.10.1997 / 23:55:01 / cg" |
2141 |
! |
|
2142 |
||
2143 |
fromImage:anImage hotSpot:aPoint |
|
2144 |
"return a new cursor. |
|
2145 |
Source- and (optional) mask-Bits are taken from anImage; |
|
2146 |
The cursors hotSpot is given as an offset from the top-left." |
|
2147 |
||
2148 |
|mask sourceForm maskForm| |
|
2149 |
||
2150 |
sourceForm := anImage asMonochromeFormOn:Screen current. |
|
2151 |
||
2152 |
mask := anImage mask. |
|
2153 |
mask isNil ifTrue:[ |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2154 |
maskForm := sourceForm |
1934 | 2155 |
] ifFalse:[ |
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2156 |
maskForm := mask asMonochromeFormOn:Screen current. |
1934 | 2157 |
]. |
2158 |
^ self sourceForm:sourceForm |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2159 |
maskForm:maskForm |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2160 |
hotX:(aPoint x) |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2161 |
hotY:(aPoint y) |
1934 | 2162 |
|
2163 |
" |
|
2164 |
|i c| |
|
2165 |
||
2166 |
i := Image fromFile:'bitmaps/xpmBitmaps/cursors/ul_br_arrow.xpm'. |
|
2167 |
c := Cursor fromImage:i hotSpot:(i center). |
|
2168 |
WindowGroup activeGroup |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2169 |
withCursor:c |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2170 |
do:[(Delay forSeconds:5)wait] |
1934 | 2171 |
" |
2172 |
||
2173 |
"Modified: 22.10.1997 / 23:49:00 / cg" |
|
2174 |
"Created: 22.10.1997 / 23:51:32 / cg" |
|
1414 | 2175 |
! |
2176 |
||
577 | 2177 |
imageArray:imageBits maskArray:maskBits |
2178 |
"ST-80 compatible cursor creation - the extent is fixed to 16@16" |
|
2179 |
||
1934 | 2180 |
^ self |
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2181 |
imageArray:imageBits |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2182 |
maskArray:maskBits |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2183 |
hotSpot:8@8 |
1934 | 2184 |
|
2185 |
" |
|
2186 |
|cursor| |
|
2187 |
||
2188 |
cursor := Cursor |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2189 |
imageArray: #( |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2190 |
2r0000000000000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2191 |
2r0000000100001110 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2192 |
2r0000000100001110 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2193 |
2r0000000100001110 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2194 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2195 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2196 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2197 |
2r0111111111111110 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2198 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2199 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2200 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2201 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2202 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2203 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2204 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2205 |
2r0000000000000000) |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2206 |
maskArray: #( |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2207 |
2r0000001110011111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2208 |
2r0000001110011111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2209 |
2r0000001110011111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2210 |
2r0000001110011111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2211 |
2r0000001110011111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2212 |
2r0000001110000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2213 |
2r1111111111111111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2214 |
2r1111111111111111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2215 |
2r1111111111111111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2216 |
2r0000001110000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2217 |
2r0000001110000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2218 |
2r0000001110000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2219 |
2r0000001110000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2220 |
2r0000001110000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2221 |
2r0000001110000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2222 |
2r0000001110000000). |
1934 | 2223 |
|
2224 |
cursor showWhile:[ |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2225 |
(Delay forSeconds:10) wait |
1934 | 2226 |
] |
2227 |
" |
|
2228 |
||
2229 |
"Modified: 23.10.1997 / 00:06:09 / cg" |
|
577 | 2230 |
! |
2231 |
||
2232 |
imageArray:imageBits maskArray:maskBits hotSpot:hot |
|
2233 |
"ST-80 compatible cursor creation - the extent is fixed to 16@16" |
|
2234 |
||
2235 |
^ self |
|
2236 |
extent:16@16 |
|
2237 |
sourceArray:imageBits |
|
2238 |
maskArray:maskBits |
|
2239 |
offset:hot negated |
|
2240 |
||
2241 |
" |
|
2242 |
|cursor| |
|
2243 |
||
2244 |
cursor := Cursor |
|
2245 |
imageArray: #( |
|
2246 |
2r0000000000000000 |
|
2247 |
2r0000000100001110 |
|
2248 |
2r0000000100001110 |
|
2249 |
2r0000000100001110 |
|
2250 |
2r0000000100000000 |
|
2251 |
2r0000000100000000 |
|
2252 |
2r0000000100000000 |
|
2253 |
2r0111111111111110 |
|
2254 |
2r0000000100000000 |
|
2255 |
2r0000000100000000 |
|
2256 |
2r0000000100000000 |
|
2257 |
2r0000000100000000 |
|
2258 |
2r0000000100000000 |
|
2259 |
2r0000000100000000 |
|
2260 |
2r0000000100000000 |
|
2261 |
2r0000000000000000) |
|
2262 |
maskArray: #( |
|
2263 |
2r0000001110011111 |
|
2264 |
2r0000001110011111 |
|
2265 |
2r0000001110011111 |
|
2266 |
2r0000001110011111 |
|
2267 |
2r0000001110011111 |
|
2268 |
2r0000001110000000 |
|
2269 |
2r1111111111111111 |
|
2270 |
2r1111111111111111 |
|
2271 |
2r1111111111111111 |
|
2272 |
2r0000001110000000 |
|
2273 |
2r0000001110000000 |
|
2274 |
2r0000001110000000 |
|
2275 |
2r0000001110000000 |
|
2276 |
2r0000001110000000 |
|
2277 |
2r0000001110000000 |
|
2278 |
2r0000001110000000) |
|
2279 |
hotSpot: 8@8. |
|
2280 |
||
2281 |
WindowGroup activeGroup |
|
2282 |
withCursor:cursor |
|
2283 |
do:[(Delay forSeconds:10)wait] |
|
2284 |
" |
|
2285 |
! |
|
2286 |
||
2287 |
imageArray:imageBits maskArray:maskBits hotSpot:hot name:aString |
|
2288 |
"ST-80 compatible cursor creation - the extent is fixed to 16@16" |
|
2289 |
||
2290 |
"name is ignored ..." |
|
2291 |
||
2292 |
^ self imageArray:imageBits maskArray:maskBits hotSpot:hot |
|
2293 |
! |
|
2294 |
||
2295 |
shape:aShape |
|
2296 |
"return one of the standard cursors. |
|
2297 |
Each display may offer different shapes - see for example XWorkstation |
|
2298 |
for details (however a basic minimum set should be supported by all)" |
|
2299 |
||
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2300 |
^ self basicNew setShape:aShape. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2301 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2302 |
"/ |newCursor| |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2303 |
"/ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2304 |
"/ "first look if not already known" |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2305 |
"/ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2306 |
"/ Lobby isNil ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2307 |
"/ self initialize |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2308 |
"/ ]. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2309 |
"/ Lobby do:[:aCursor | |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2310 |
"/ (aCursor shape == aShape) ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2311 |
"/ ^ aCursor |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2312 |
"/ ] |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2313 |
"/ ]. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2314 |
"/ newCursor := self basicNew setShape:aShape. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2315 |
"/ Lobby register:newCursor. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2316 |
"/ ^ newCursor |
577 | 2317 |
! |
2318 |
||
2319 |
shape:aShape on:aDevice |
|
2320 |
"return one of the standard cursors already associated to aDevice. |
|
2321 |
This is the same as '(Cursor shape:aShape) on:aDevice' but somwehat faster." |
|
2322 |
||
2999
5e9272beef1b
eliminated refs to Display - must use Screen current
Stefan Vogel <sv@exept.de>
parents:
2980
diff
changeset
|
2323 |
aDevice isNil ifTrue:[ |
5e9272beef1b
eliminated refs to Display - must use Screen current
Stefan Vogel <sv@exept.de>
parents:
2980
diff
changeset
|
2324 |
^ self basicNew setShape:aShape |
5e9272beef1b
eliminated refs to Display - must use Screen current
Stefan Vogel <sv@exept.de>
parents:
2980
diff
changeset
|
2325 |
]. |
5e9272beef1b
eliminated refs to Display - must use Screen current
Stefan Vogel <sv@exept.de>
parents:
2980
diff
changeset
|
2326 |
|
577 | 2327 |
"first look if not already known" |
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2328 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2329 |
aDevice deviceCursors do:[:aCursor | |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2330 |
aCursor shape == aShape ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2331 |
^ aCursor |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2332 |
] |
577 | 2333 |
]. |
2334 |
||
2844 | 2335 |
^ (self basicNew setShape:aShape) allocateOnDevice:aDevice |
577 | 2336 |
! |
2337 |
||
0 | 2338 |
sourceForm:aForm |
2339 |
"return a new cursor. |
|
2340 |
Source- and mask-Bits are taken from aForm; hotSpot is center" |
|
2341 |
||
1934 | 2342 |
^ self sourceForm:aForm maskForm:aForm |
2343 |
||
2344 |
"Modified: 23.10.1997 / 00:08:37 / cg" |
|
0 | 2345 |
! |
2346 |
||
2347 |
sourceForm:sourceForm maskForm:maskForm |
|
2348 |
"return a new cursor. hotSpot is center" |
|
2349 |
||
2350 |
^ self sourceForm:sourceForm |
|
80 | 2351 |
maskForm:maskForm |
2352 |
hotX:(sourceForm width // 2) |
|
2353 |
hotY:(sourceForm height // 2) |
|
0 | 2354 |
! |
2355 |
||
2356 |
sourceForm:sourceForm maskForm:maskForm hotSpot:aPoint |
|
2357 |
"return a new cursor" |
|
2358 |
||
2359 |
^ self sourceForm:sourceForm |
|
80 | 2360 |
maskForm:maskForm |
2361 |
hotX:(aPoint x) |
|
2362 |
hotY:(aPoint y) |
|
0 | 2363 |
! |
2364 |
||
2365 |
sourceForm:sourceForm maskForm:maskForm hotX:hotX hotY:hotY |
|
2366 |
"return a new cursor" |
|
2367 |
||
35 | 2368 |
(sourceForm isNil or:[maskForm isNil]) ifTrue:[^ nil]. |
2369 |
||
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2370 |
^ self basicNew |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2371 |
setSourceForm:sourceForm |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2372 |
maskForm:maskForm |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2373 |
hotX:hotX |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2374 |
hotY:hotY. |
1224
2a2270ec4236
added #releaseResourcesOnDevice:, to allow cleanup when
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2375 |
! ! |
2a2270ec4236
added #releaseResourcesOnDevice:, to allow cleanup when
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2376 |
|
1140 | 2377 |
!Cursor class methodsFor:'default access'! |
577 | 2378 |
|
3282 | 2379 |
defaultBgColor |
2380 |
"return the default bg color used for cursors" |
|
2381 |
||
2382 |
^ DefaultBgColor |
|
2383 |
||
2384 |
! |
|
2385 |
||
2386 |
defaultFgColor |
|
2387 |
"return the default fg color used for cursors" |
|
2388 |
||
2389 |
^ DefaultFgColor |
|
2390 |
||
2391 |
! |
|
2392 |
||
577 | 2393 |
defaultFgColor:fgColor defaultBgColor:bgColor |
3284 | 2394 |
"set the default colors used for new cursors" |
577 | 2395 |
|
2396 |
DefaultFgColor := fgColor. |
|
3284 | 2397 |
DefaultBgColor := bgColor. |
2398 |
||
2399 |
" |
|
2400 |
Cursor defaultFgColor:(Color red) defaultBgColor:(Color white) |
|
2401 |
" |
|
0 | 2402 |
! ! |
2403 |
||
1140 | 2404 |
!Cursor class methodsFor:'standard cursors'! |
0 | 2405 |
|
2406 |
arrow |
|
2407 |
"return an arrow (up-left-arrow) cursor" |
|
2408 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2409 |
^ self upLeftArrow |
1934 | 2410 |
|
2411 |
" |
|
2412 |
Cursor arrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2413 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2414 |
" |
2415 |
||
2416 |
"Modified: 23.10.1997 / 00:28:28 / cg" |
|
0 | 2417 |
! |
2418 |
||
577 | 2419 |
blank |
1934 | 2420 |
"Answer the instance of me that is an invisible cursor." |
2421 |
||
2422 |
^ BlankCursor |
|
2423 |
||
2424 |
" |
|
2425 |
Cursor blank |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2426 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2427 |
" |
2428 |
||
2429 |
"Modified: 23.10.1997 / 00:27:39 / cg" |
|
2430 |
! |
|
80 | 2431 |
|
2432 |
bottomLeft |
|
2433 |
"return a bottom-left corner cursor" |
|
2434 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2435 |
^ BottomLeftCornerCursor |
1934 | 2436 |
|
2437 |
" |
|
2438 |
Cursor bottomLeft |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2439 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2440 |
" |
2441 |
||
2442 |
"Modified: 23.10.1997 / 00:27:12 / cg" |
|
80 | 2443 |
! |
2444 |
||
2445 |
bottomRight |
|
2446 |
"return a bottom-right corner cursor" |
|
2447 |
||
2448 |
^ self corner |
|
1934 | 2449 |
|
2450 |
" |
|
2451 |
Cursor bottomRight |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2452 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2453 |
" |
2454 |
||
2455 |
"Modified: 23.10.1997 / 00:27:02 / cg" |
|
80 | 2456 |
! |
2457 |
||
577 | 2458 |
caret |
1934 | 2459 |
"return a caret cursor" |
2460 |
||
2461 |
^ CaretCursor |
|
2462 |
||
2463 |
" |
|
2464 |
Cursor caret |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2465 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2466 |
" |
2467 |
||
2468 |
"Modified: 23.10.1997 / 00:27:08 / cg" |
|
2469 |
! |
|
577 | 2470 |
|
2471 |
corner |
|
1934 | 2472 |
"return a corner (bottom-right) cursor" |
80 | 2473 |
|
577 | 2474 |
^ CornerCursor |
1934 | 2475 |
|
2476 |
" |
|
2477 |
Cursor corner |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2478 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2479 |
" |
2480 |
||
2481 |
"Modified: 23.10.1997 / 00:26:53 / cg" |
|
577 | 2482 |
! |
2483 |
||
2484 |
cross |
|
2485 |
"return a cross cursor" |
|
2486 |
||
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
2487 |
^ CrossCursor |
1934 | 2488 |
|
2489 |
" |
|
2490 |
Cursor cross |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
2491 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2492 |
" |
2493 |
||
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
2494 |
"Modified: / 29.4.1999 / 21:28:42 / cg" |
80 | 2495 |
! |
2496 |
||
0 | 2497 |
crossHair |
2498 |
"return a crossHair cursor" |
|
2499 |
||
2500 |
^ CrossHairCursor |
|
1934 | 2501 |
|
2502 |
" |
|
2503 |
Cursor crossHair |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2504 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2505 |
" |
2506 |
||
2507 |
"Modified: 23.10.1997 / 00:26:42 / cg" |
|
0 | 2508 |
! |
2509 |
||
2121
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2510 |
document |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2511 |
"return a document cursor (dragging a document)" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2512 |
|
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2513 |
^ DocumentCursor |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2514 |
|
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2515 |
" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2516 |
Cursor document |
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2517 |
showWhile:[ Delay waitForSeconds:3 ] |
2121
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2518 |
" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2519 |
|
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2520 |
"Modified: / 23.10.1997 / 00:27:08 / cg" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2521 |
"Created: / 19.5.1998 / 17:17:53 / cg" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2522 |
! |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2523 |
|
577 | 2524 |
down |
1934 | 2525 |
"Answer the instance of me that is the shape of a down-arrow." |
2526 |
||
2527 |
^ DownCursor |
|
2528 |
||
2529 |
" |
|
2530 |
Cursor down |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2531 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2532 |
" |
2533 |
||
2534 |
"Modified: 23.10.1997 / 00:26:34 / cg" |
|
2535 |
! |
|
0 | 2536 |
|
577 | 2537 |
downLimitArrow |
2538 |
"return a down-arrow-to-limit cursor" |
|
0 | 2539 |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2540 |
^ DownLimitCursor |
1934 | 2541 |
|
2542 |
" |
|
2543 |
Cursor downLimitArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2544 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2545 |
" |
2546 |
||
2547 |
"Modified: 23.10.1997 / 00:26:29 / cg" |
|
0 | 2548 |
! |
2549 |
||
2550 |
execute |
|
157 | 2551 |
"return a execute cursor - (the default here is a wait-cursor)" |
0 | 2552 |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2553 |
^ XeqCursor |
1934 | 2554 |
|
2555 |
" |
|
2556 |
Cursor execute |
|
2482
7e1e4eaa5ce6
fallback for non-existing execute cursorShape is the wait cursorShape.
Claus Gittinger <cg@exept.de>
parents:
2474
diff
changeset
|
2557 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2558 |
" |
2559 |
||
2560 |
"Modified: 23.10.1997 / 00:26:19 / cg" |
|
56 | 2561 |
! |
2562 |
||
577 | 2563 |
eye |
1934 | 2564 |
"return an eye cursor" |
2565 |
||
2566 |
^ EyeCursor |
|
2567 |
||
2568 |
" |
|
2569 |
Cursor eye |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2570 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2571 |
" |
2572 |
||
2573 |
"Modified: 23.10.1997 / 00:26:06 / cg" |
|
577 | 2574 |
! |
2575 |
||
3201 | 2576 |
eyeClosed |
2577 |
"return an eye cursor" |
|
2578 |
||
2579 |
^ ClosedEyeCursor |
|
2580 |
||
2581 |
" |
|
2582 |
Cursor eyeClosed |
|
2583 |
showWhile:[ Delay waitForSeconds:3 ] |
|
2584 |
" |
|
2585 |
||
2586 |
"Modified: 23.10.1997 / 00:26:06 / cg" |
|
2587 |
! |
|
2588 |
||
2121
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2589 |
folder |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2590 |
"return a folder cursor (dragging a folder)" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2591 |
|
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2592 |
^ FolderCursor |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2593 |
|
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2594 |
" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2595 |
Cursor folder |
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2596 |
showWhile:[ Delay waitForSeconds:3 ] |
2121
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2597 |
" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2598 |
|
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2599 |
"Modified: / 23.10.1997 / 00:27:08 / cg" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2600 |
"Created: / 19.5.1998 / 17:18:17 / cg" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2601 |
! |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2602 |
|
577 | 2603 |
fourWay |
2604 |
"return a four-way arrow cursor" |
|
2605 |
||
2606 |
^ FourWayCursor |
|
1934 | 2607 |
|
2608 |
" |
|
2609 |
Cursor fourWay |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2610 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2611 |
" |
2612 |
||
2613 |
"Modified: 23.10.1997 / 00:25:34 / cg" |
|
577 | 2614 |
! |
2615 |
||
2616 |
hand |
|
2617 |
"return a hand cursor" |
|
2618 |
||
2619 |
^ HandCursor |
|
1934 | 2620 |
|
2621 |
" |
|
2622 |
Cursor hand |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2623 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2624 |
" |
2625 |
||
2626 |
"Modified: 23.10.1997 / 00:25:07 / cg" |
|
577 | 2627 |
! |
2628 |
||
2629 |
left |
|
1934 | 2630 |
"Answer the instance of me that is the shape of an arrow facing to the left." |
2631 |
||
2632 |
^ LeftCursor |
|
2633 |
||
2634 |
" |
|
2635 |
Cursor left |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2636 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2637 |
" |
2638 |
||
2639 |
"Modified: 23.10.1997 / 00:24:51 / cg" |
|
2640 |
! |
|
577 | 2641 |
|
2642 |
leftHand |
|
2643 |
"return a left-hand cursor" |
|
2644 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2645 |
^ LeftHandCursor ? HandCursor |
1934 | 2646 |
|
2647 |
" |
|
2648 |
Cursor leftHand |
|
2626 | 2649 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2650 |
" |
2651 |
||
2626 | 2652 |
"Modified: / 3.5.1999 / 18:54:52 / cg" |
577 | 2653 |
! |
2654 |
||
2655 |
leftLimitArrow |
|
2656 |
"return a left-arrow-to-limit cursor" |
|
2657 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2658 |
^ LeftLimitCursor |
1934 | 2659 |
|
2660 |
" |
|
2661 |
Cursor leftLimitArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2662 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2663 |
" |
2664 |
||
2665 |
"Modified: 23.10.1997 / 00:24:14 / cg" |
|
577 | 2666 |
! |
2667 |
||
2668 |
leftRightArrow |
|
2669 |
"return a left-right-arrow cursor" |
|
2670 |
||
2671 |
^ LeftRightArrowCursor |
|
1934 | 2672 |
|
2673 |
" |
|
2674 |
Cursor leftRightArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2675 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2676 |
" |
2677 |
||
2678 |
"Modified: 23.10.1997 / 00:23:59 / cg" |
|
577 | 2679 |
! |
2680 |
||
2681 |
marker |
|
1934 | 2682 |
"Answer the instance of me that is the shape of a horizontal arrow." |
2683 |
||
2684 |
^ MarkerCursor |
|
2685 |
||
2686 |
" |
|
2687 |
Cursor marker |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2688 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2689 |
" |
2690 |
||
2691 |
"Modified: 23.10.1997 / 00:23:33 / cg" |
|
2692 |
! |
|
56 | 2693 |
|
577 | 2694 |
normal |
2695 |
"return the normal cursor; an arrow. |
|
2696 |
for ST-80 compatibility" |
|
2697 |
||
2698 |
^ NormalCursor |
|
1568 | 2699 |
|
1934 | 2700 |
|
2701 |
" |
|
2702 |
Cursor normal |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2703 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2704 |
" |
2705 |
||
2706 |
"Modified: 23.10.1997 / 00:23:12 / cg" |
|
577 | 2707 |
! |
2708 |
||
2709 |
origin |
|
2710 |
"return an origin cursor" |
|
2711 |
||
2712 |
^ OriginCursor |
|
1934 | 2713 |
|
2714 |
" |
|
2715 |
Cursor origin |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2716 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2717 |
" |
2718 |
||
2719 |
"Modified: 23.10.1997 / 00:22:58 / cg" |
|
577 | 2720 |
! |
2721 |
||
2722 |
questionMark |
|
2723 |
"return a question-mark cursor" |
|
2724 |
||
2616
9e03b6a1e2d0
questionMarkCursor; fixed CrossCursor.
Claus Gittinger <cg@exept.de>
parents:
2615
diff
changeset
|
2725 |
^ QuestionMarkCursor |
1934 | 2726 |
|
2727 |
" |
|
2728 |
Cursor questionMark |
|
2616
9e03b6a1e2d0
questionMarkCursor; fixed CrossCursor.
Claus Gittinger <cg@exept.de>
parents:
2615
diff
changeset
|
2729 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2730 |
" |
2731 |
||
2618
a03aee8c0b4b
use eye as replacement for questionmark
Claus Gittinger <cg@exept.de>
parents:
2616
diff
changeset
|
2732 |
"Modified: / 30.4.1999 / 10:14:52 / cg" |
577 | 2733 |
! |
2734 |
||
2735 |
read |
|
2736 |
"return a reading-file cursor (the default here is a wait-cursor)" |
|
2737 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2738 |
^ ReadCursor |
1934 | 2739 |
|
2740 |
" |
|
2741 |
Cursor read |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2742 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2743 |
" |
2744 |
||
2745 |
"Modified: 23.10.1997 / 00:22:23 / cg" |
|
577 | 2746 |
! |
2747 |
||
2748 |
right |
|
1934 | 2749 |
"Answer the instance of me that is the shape of an arrow facing to the right." |
2750 |
||
2751 |
^ RightCursor |
|
2752 |
||
2753 |
" |
|
2754 |
Cursor right |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2755 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2756 |
" |
2757 |
||
2758 |
"Modified: 23.10.1997 / 00:22:05 / cg" |
|
2759 |
! |
|
2760 |
||
2761 |
rightLimitArrow |
|
577 | 2762 |
"return a right-arrow-to-limit cursor" |
2763 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2764 |
^ RightLimitCursor |
1934 | 2765 |
|
2766 |
||
2767 |
" |
|
2768 |
Cursor rightLimitArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2769 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2770 |
" |
2771 |
||
2772 |
"Modified: 23.10.1997 / 00:15:12 / cg" |
|
2773 |
"Created: 23.10.1997 / 00:21:21 / cg" |
|
577 | 2774 |
! |
2775 |
||
2776 |
stop |
|
2777 |
"return a stop cursor (the default here is a wait-cursor)" |
|
2778 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2779 |
^ StopCursor |
1934 | 2780 |
|
2781 |
" |
|
2782 |
Cursor stop |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2783 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2784 |
" |
2785 |
||
2786 |
"Modified: 23.10.1997 / 00:20:52 / cg" |
|
577 | 2787 |
! |
2788 |
||
2789 |
text |
|
2790 |
"return a text-cursor" |
|
2791 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2792 |
^ NormalCursor |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2793 |
"/ ^ TextCursor |
1934 | 2794 |
|
2795 |
" |
|
2796 |
Cursor text |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2797 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2798 |
" |
2799 |
||
2800 |
"Modified: 23.10.1997 / 00:20:37 / cg" |
|
56 | 2801 |
! |
2802 |
||
2803 |
thumbsDown |
|
2804 |
"return a hand cursor - ST-80 compatibility" |
|
2805 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2806 |
^ ThumbsDownCursor |
1934 | 2807 |
|
2808 |
" |
|
2809 |
Cursor thumbsDown |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2810 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2811 |
" |
2812 |
||
2813 |
"Modified: 23.10.1997 / 00:20:20 / cg" |
|
577 | 2814 |
! |
2815 |
||
2816 |
thumbsUp |
|
2817 |
"return a hand cursor - ST-80 compatibility" |
|
2818 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2819 |
^ ThumbsUpCursor |
1934 | 2820 |
|
2821 |
" |
|
2822 |
Cursor thumbsUp |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2823 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2824 |
" |
2825 |
||
2826 |
"Modified: 23.10.1997 / 00:20:04 / cg" |
|
577 | 2827 |
! |
2828 |
||
2829 |
topLeft |
|
2830 |
"return a top-left corner cursor" |
|
0 | 2831 |
|
577 | 2832 |
^ self origin |
1934 | 2833 |
|
2834 |
" |
|
2835 |
Cursor topLeft |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2836 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2837 |
" |
2838 |
||
2839 |
"Modified: 23.10.1997 / 00:19:50 / cg" |
|
577 | 2840 |
! |
2841 |
||
2842 |
topRight |
|
2843 |
"return a top-right corner cursor" |
|
2844 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2845 |
^ TopRightCornerCursor |
1934 | 2846 |
|
2847 |
" |
|
2848 |
Cursor topRight |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2849 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2850 |
" |
2851 |
||
2852 |
"Modified: 23.10.1997 / 00:19:33 / cg" |
|
577 | 2853 |
! |
2854 |
||
2855 |
up |
|
1934 | 2856 |
"Answer the instance of me that is the shape of an up-arrow." |
2857 |
||
2858 |
^ UpCursor |
|
2859 |
||
2860 |
" |
|
2861 |
Cursor up |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2862 |
showWhile:[ Delay waitForSeconds:5 ] |
1934 | 2863 |
" |
2864 |
||
2865 |
"Modified: 23.10.1997 / 00:19:14 / cg" |
|
2866 |
! |
|
71 | 2867 |
|
577 | 2868 |
upDownArrow |
2869 |
"return an up-down-arrow cursor" |
|
2870 |
||
2871 |
^ UpDownArrowCursor |
|
1934 | 2872 |
|
2873 |
" |
|
2874 |
Cursor upDownArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2875 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2876 |
" |
2877 |
||
2878 |
"Modified: 23.10.1997 / 00:18:53 / cg" |
|
577 | 2879 |
! |
2880 |
||
2881 |
upLeftArrow |
|
2882 |
"return an up-right-arrow cursor" |
|
2883 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2884 |
^ NormalCursor |
1934 | 2885 |
|
2886 |
" |
|
2887 |
Cursor upLeftArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2888 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2889 |
" |
2890 |
||
2891 |
"Modified: 23.10.1997 / 00:18:37 / cg" |
|
577 | 2892 |
! |
71 | 2893 |
|
577 | 2894 |
upLimitArrow |
2895 |
"return an up-arrow-to-limit cursor" |
|
2896 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2897 |
^ UpLimitCursor |
1934 | 2898 |
|
2899 |
" |
|
2900 |
Cursor upLimitArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2901 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2902 |
" |
2903 |
||
2904 |
"Modified: 23.10.1997 / 00:18:19 / cg" |
|
577 | 2905 |
! |
0 | 2906 |
|
577 | 2907 |
upRightArrow |
2908 |
"return an up-right-arrow cursor" |
|
2909 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2910 |
^ NormalCursor |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2911 |
"/ ^ UpRightArrowCursor |
1934 | 2912 |
|
2913 |
" |
|
2914 |
Cursor upRightArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2915 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2916 |
" |
2917 |
||
2918 |
"Modified: 23.10.1997 / 00:18:03 / cg" |
|
577 | 2919 |
! |
2920 |
||
2921 |
upRightHand |
|
2922 |
"return an up-right-hand cursor" |
|
2923 |
||
2063 | 2924 |
^ UpRightHandCursor |
1934 | 2925 |
|
2926 |
" |
|
2927 |
Cursor upRightHand |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2928 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2929 |
" |
2930 |
||
2931 |
"Modified: 23.10.1997 / 00:17:46 / cg" |
|
71 | 2932 |
! |
2933 |
||
577 | 2934 |
wait |
2935 |
"return a wait cursor" |
|
2936 |
||
2937 |
^ WaitCursor |
|
1934 | 2938 |
|
2939 |
" |
|
2940 |
Cursor wait |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2941 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2942 |
" |
2943 |
||
2944 |
"Modified: 23.10.1997 / 00:17:32 / cg" |
|
577 | 2945 |
! |
2946 |
||
2947 |
write |
|
2948 |
"return a writing-file cursor (the default here is a wait-cursor)" |
|
0 | 2949 |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2950 |
^ WriteCursor |
1934 | 2951 |
|
2952 |
" |
|
2953 |
Cursor write |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2954 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2955 |
" |
2956 |
||
2957 |
"Modified: 23.10.1997 / 00:17:22 / cg" |
|
577 | 2958 |
! |
2959 |
||
2960 |
xMarker |
|
1934 | 2961 |
"Answer the instance of me that is displayed when thumb-scrolling on the x-axis." |
2962 |
||
2963 |
^ XMarkerCursor |
|
2964 |
||
2965 |
" |
|
2966 |
Cursor xMarker |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2967 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2968 |
" |
2969 |
||
2970 |
"Modified: 23.10.1997 / 00:16:44 / cg" |
|
2971 |
! ! |
|
577 | 2972 |
|
2973 |
!Cursor methodsFor:'ST-80 displaying'! |
|
2974 |
||
2975 |
displayOn:aGC at:origin clippingBox:aRectangle rule:aRule mask:aMask |
|
2976 |
"ST-80 compatibility; |
|
2977 |
limited functionality: can only display bitmap cursors (yet)" |
|
2978 |
||
2979 |
sourceForm notNil ifTrue:[ |
|
2980 |
sourceForm displayOn:aGC at:origin clippingBox:aRectangle |
|
2981 |
rule:aRule mask:aMask |
|
0 | 2982 |
] |
2 | 2983 |
! |
2984 |
||
577 | 2985 |
show |
2986 |
"ST-80 mimicri: change cursors in active groups views to the receiver." |
|
2 | 2987 |
|
1188
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
2988 |
|wg| |
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
2989 |
|
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
2990 |
(wg := WindowGroup activeGroup) notNil ifTrue:[ |
1698 | 2991 |
wg showCursor:self |
1188
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
2992 |
] |
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
2993 |
|
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
2994 |
"Modified: 13.1.1997 / 20:10:01 / cg" |
577 | 2995 |
! |
2996 |
||
2997 |
showIn:aView |
|
2998 |
"ST-80 mimicri: install the receiver as aViews cursor" |
|
2999 |
||
3000 |
aView cursor:self |
|
2 | 3001 |
! |
3002 |
||
577 | 3003 |
showIn:aView while:aBlock |
3004 |
"ST-80 mimicri: change aViews cursors to the receiver, while evaluationg aBlock. |
|
3005 |
Return the value as returned by aBlock." |
|
3006 |
||
3007 |
|savedCursor| |
|
3008 |
||
3009 |
savedCursor := aView cursor. |
|
3010 |
aView cursor:self. |
|
3607
62e5a818d378
#valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents:
3462
diff
changeset
|
3011 |
^ aBlock ensure:[aView cursor:savedCursor] |
577 | 3012 |
! |
2 | 3013 |
|
577 | 3014 |
showWhile:aBlock |
3015 |
"ST-80 mimicri: change all views cursors to the receiver. |
|
3016 |
Return the value as returned by aBlock." |
|
3017 |
||
1188
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
3018 |
|wg| |
577 | 3019 |
|
1188
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
3020 |
(wg := WindowGroup activeGroup) notNil ifTrue:[ |
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
3021 |
^ wg withCursor:self do:aBlock |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
3022 |
]. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
3023 |
^ aBlock value |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
3024 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
3025 |
"Modified: / 28.9.1998 / 12:56:59 / cg" |
2 | 3026 |
! ! |
3027 |
||
0 | 3028 |
!Cursor methodsFor:'accessing'! |
3029 |
||
577 | 3030 |
device |
3031 |
"return the device I am associated with" |
|
3032 |
||
3033 |
^ device |
|
3034 |
! |
|
3035 |
||
3462 | 3036 |
extent |
3037 |
sourceForm notNil ifTrue:[^ sourceForm extent]. |
|
3038 |
^ 16@16 |
|
3039 |
! |
|
3040 |
||
577 | 3041 |
foreground:fgColor background:bgColor |
3042 |
"set the cursor colors" |
|
3043 |
||
3044 |
device colorCursor:cursorId foreground:fgColor background:bgColor |
|
3045 |
! |
|
3046 |
||
733 | 3047 |
graphicsDevice |
3048 |
"same as #device, for ST-80 compatibility naming. |
|
3049 |
Return the device I am associated with." |
|
3050 |
||
3051 |
^ device |
|
3052 |
||
3053 |
"Created: 28.5.1996 / 18:39:01 / cg" |
|
3054 |
! |
|
3055 |
||
577 | 3056 |
hotX |
3057 |
"return the hotspots x-coordinate of the receiver" |
|
3058 |
||
3059 |
^ hotX |
|
3060 |
! |
|
3061 |
||
3062 |
hotY |
|
3063 |
"return the hotspots y-coordinate of the receiver" |
|
3064 |
||
3065 |
^ hotY |
|
3066 |
! |
|
3067 |
||
0 | 3068 |
id |
3069 |
"return the cursors deviceId" |
|
3070 |
||
3071 |
^ cursorId |
|
3072 |
! |
|
3073 |
||
577 | 3074 |
maskForm |
3075 |
"return the mask-form of the receiver" |
|
0 | 3076 |
|
577 | 3077 |
^ maskForm |
3078 |
! |
|
3079 |
||
3080 |
maskForm:aForm |
|
3081 |
"set the mask-form of the receiver" |
|
3082 |
||
3083 |
maskForm := aForm |
|
0 | 3084 |
! |
3085 |
||
3086 |
shape |
|
3087 |
"return the shape" |
|
3088 |
||
3089 |
^ shape |
|
3090 |
! |
|
3091 |
||
3092 |
sourceForm |
|
3093 |
"return the source-form of the receiver" |
|
3094 |
||
3095 |
^ sourceForm |
|
3096 |
! |
|
3097 |
||
3098 |
sourceForm:aForm |
|
3099 |
"set the source-form of the receiver" |
|
3100 |
||
3101 |
sourceForm := aForm |
|
577 | 3102 |
! ! |
0 | 3103 |
|
577 | 3104 |
!Cursor methodsFor:'copying'! |
0 | 3105 |
|
577 | 3106 |
postCopy |
3107 |
sourceForm := sourceForm copy. |
|
3108 |
maskForm := maskForm copy. |
|
3109 |
device := cursorId := nil |
|
0 | 3110 |
! ! |
3111 |
||
3112 |
!Cursor methodsFor:'creating a device cursor'! |
|
3113 |
||
3114 |
on:aDevice |
|
3115 |
"create a new Cursor representing the same cursor as |
|
3116 |
myself on aDevice; if one already exists, return the one" |
|
3117 |
||
3623 | 3118 |
"/ send out a warning: #on: is typically used to create views |
1741 | 3119 |
"/ operating on a model. |
3120 |
"/ Please use #onDevice: to avoid confusion. |
|
3121 |
||
3428 | 3122 |
<resource:#obsolete> |
3123 |
||
1494
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3124 |
self obsoleteMethodWarning:'use #onDevice:'. |
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3125 |
^ self onDevice:aDevice |
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3126 |
|
1741 | 3127 |
"Modified: 5.6.1997 / 21:04:35 / cg" |
1494
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3128 |
! |
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3129 |
|
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3130 |
onDevice:aDevice |
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3131 |
"create a new Cursor representing the same cursor as |
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3132 |
myself on aDevice; if one already exists, return the one" |
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3133 |
|
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3134 |
|newCursor| |
0 | 3135 |
|
71 | 3136 |
"if I am already assigned to that device ..." |
0 | 3137 |
(device == aDevice) ifTrue:[^ self]. |
2844 | 3138 |
|
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3139 |
aDevice isNil ifTrue:[ |
2980
409e9547a45c
ignore nil device in #onDevice:
Claus Gittinger <cg@exept.de>
parents:
2845
diff
changeset
|
3140 |
^ self |
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3141 |
]. |
0 | 3142 |
|
3143 |
"first look if not already there" |
|
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3144 |
aDevice deviceCursors do:[:aCursor | |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3145 |
shape notNil ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3146 |
(aCursor shape == shape) ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3147 |
^ aCursor |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3148 |
] |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3149 |
] ifFalse:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3150 |
(aCursor sourceForm == sourceForm) ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3151 |
(aCursor maskForm == maskForm) ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3152 |
(aCursor hotX == hotX) ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3153 |
(aCursor hotY == hotY) ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3154 |
^ aCursor |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3155 |
] |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3156 |
] |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3157 |
] |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3158 |
] |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3159 |
] |
0 | 3160 |
]. |
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3161 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3162 |
device isNil ifTrue:[ |
2844 | 3163 |
newCursor := self |
3164 |
] ifFalse:[ |
|
3165 |
newCursor := self shallowCopy. |
|
3166 |
newCursor setDevice:nil id:nil. |
|
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3167 |
]. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3168 |
^ newCursor allocateOnDevice:aDevice |
927
c4bc2a7ff733
use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents:
864
diff
changeset
|
3169 |
|
c4bc2a7ff733
use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents:
864
diff
changeset
|
3170 |
"Modified: 5.7.1996 / 17:58:00 / cg" |
1494
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3171 |
"Created: 28.3.1997 / 13:46:38 / cg" |
71 | 3172 |
! ! |
3173 |
||
577 | 3174 |
!Cursor methodsFor:'instance release'! |
3175 |
||
3611
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3176 |
executor |
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3177 |
"redefined to return a lightweight copy |
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3178 |
- all we need is the device handle" |
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3179 |
|
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3180 |
^ self class basicNew setDevice:device id:cursorId |
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3181 |
|
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3182 |
"Modified: 20.4.1996 / 23:23:19 / cg" |
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3183 |
! |
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3184 |
|
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3185 |
finalize |
1698 | 3186 |
"some Cursor has been collected - tell it to the display" |
577 | 3187 |
|
2844 | 3188 |
|id dev| |
2096 | 3189 |
|
3190 |
(id := cursorId) notNil ifTrue:[ |
|
2844 | 3191 |
(dev := device) notNil ifTrue:[ |
3192 |
cursorId := device := nil. |
|
3193 |
dev destroyCursor:id. |
|
3194 |
] |
|
577 | 3195 |
] |
3196 |
! |
|
3197 |
||
2845 | 3198 |
releaseFromDevice |
3199 |
"I am no longer available on the device" |
|
3200 |
||
4216
0a6a150d2c03
Release also the cursors forms when releasing a cursor.
Stefan Vogel <sv@exept.de>
parents:
3877
diff
changeset
|
3201 |
sourceForm notNil ifTrue:[sourceForm releaseFromDevice]. |
0a6a150d2c03
Release also the cursors forms when releasing a cursor.
Stefan Vogel <sv@exept.de>
parents:
3877
diff
changeset
|
3202 |
maskForm notNil ifTrue:[maskForm releaseFromDevice]. |
2845 | 3203 |
cursorId := device := nil. |
577 | 3204 |
! ! |
3205 |
||
71 | 3206 |
!Cursor methodsFor:'private'! |
3207 |
||
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3208 |
allocateOnDevice:aDevice |
2844 | 3209 |
"allocate a device-cursor-resource for me on aDevice" |
71 | 3210 |
|
3743 | 3211 |
|id sF mF w h deviceSf deviceMf| |
0 | 3212 |
|
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3213 |
device notNil ifTrue:[ |
4216
0a6a150d2c03
Release also the cursors forms when releasing a cursor.
Stefan Vogel <sv@exept.de>
parents:
3877
diff
changeset
|
3214 |
self error:'cursor is already assigned to a device' mayProceed:true. |
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3215 |
device unregisterCursor:self. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3216 |
device := cursorId := nil. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3217 |
]. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3218 |
|
0 | 3219 |
"ask that device for the cursor" |
3220 |
shape notNil ifTrue:[ |
|
2473 | 3221 |
id := aDevice createCursorShape:shape. |
3222 |
id isNil ifTrue:[ |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3223 |
sourceForm isNil ifTrue:[ |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3224 |
"/ no fallBack form provided ... |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3225 |
'Cursor [warning]: no cursor with shape:' errorPrint. |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3226 |
shape errorPrint. ' on device ' errorPrint. aDevice errorPrintCR. |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3227 |
^ self |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3228 |
] |
2473 | 3229 |
]. |
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3230 |
]. |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3231 |
id isNil ifTrue:[ |
2473 | 3232 |
aDevice needDeviceFormsForCursor ifTrue:[ |
3233 |
sourceForm notNil ifTrue:[ |
|
2474
bddae0850c56
dont mix deviceBitmaps with my deviceId
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
3234 |
sF := deviceSf := sourceForm asFormOn:aDevice. |
2473 | 3235 |
]. |
3236 |
maskForm notNil ifTrue:[ |
|
2474
bddae0850c56
dont mix deviceBitmaps with my deviceId
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
3237 |
mF := deviceMf := maskForm asFormOn:aDevice. |
2473 | 3238 |
] ifFalse:[ |
3239 |
mF := sF |
|
3240 |
]. |
|
3241 |
] ifFalse:[ |
|
3242 |
sourceForm notNil ifTrue:[ |
|
2474
bddae0850c56
dont mix deviceBitmaps with my deviceId
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
3243 |
sF := sourceForm bits. |
bddae0850c56
dont mix deviceBitmaps with my deviceId
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
3244 |
deviceSf := sourceForm. |
2473 | 3245 |
]. |
3246 |
maskForm notNil ifTrue:[ |
|
3247 |
mF := maskForm bits. |
|
2474
bddae0850c56
dont mix deviceBitmaps with my deviceId
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
3248 |
deviceMf := maskForm. |
2473 | 3249 |
] ifFalse:[ |
3250 |
mF := sF |
|
3251 |
]. |
|
3252 |
]. |
|
3253 |
(sF isNil or:[mF isNil]) ifTrue:[ |
|
3254 |
'Cursor [warning]: cursor has no form' errorPrintCR. |
|
3255 |
^ self |
|
3256 |
]. |
|
3257 |
w := sourceForm width. |
|
3258 |
h := sourceForm height. |
|
3259 |
id := aDevice |
|
3260 |
createCursorSourceForm:sF |
|
3261 |
maskForm:mF |
|
3262 |
hotX:hotX hotY:hotY |
|
3263 |
width:w height:h. |
|
3264 |
||
3265 |
id isNil ifTrue:[ |
|
3266 |
'Cursor [warning]: cannot create pixmap cursor' errorPrintCR. |
|
3267 |
^ self |
|
3268 |
]. |
|
0 | 3269 |
]. |
3270 |
||
3271 |
"goody for IRIXs red cursor" |
|
3272 |
DefaultFgColor notNil ifTrue:[ |
|
2473 | 3273 |
aDevice colorCursor:id foreground:DefaultFgColor |
3274 |
background:DefaultBgColor |
|
0 | 3275 |
]. |
3276 |
||
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3277 |
device := aDevice. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3278 |
cursorId := id. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3279 |
sourceForm := deviceSf. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3280 |
maskForm := deviceMf. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3281 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3282 |
"must register" |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3283 |
device registerCursor:self. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3284 |
^ self |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3285 |
! |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3286 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3287 |
device:aDevice |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3288 |
"set the cursors device" |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3289 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3290 |
device := aDevice |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3291 |
! |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3292 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3293 |
id:anId |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3294 |
"set the cursors id" |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3295 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3296 |
cursorId := anId |
71 | 3297 |
! |
0 | 3298 |
|
2 | 3299 |
restored |
0 | 3300 |
"set both device and id" |
3301 |
||
3302 |
device := nil. |
|
3303 |
cursorId := nil |
|
3304 |
! ! |
|
3305 |
||
3877 | 3306 |
!Cursor methodsFor:'private-accessing'! |
0 | 3307 |
|
577 | 3308 |
setDevice:aDevice id:anId |
3309 |
"set the device and deviceId of the receiver" |
|
160 | 3310 |
|
577 | 3311 |
device := aDevice. |
3312 |
cursorId := anId |
|
0 | 3313 |
! |
3314 |
||
577 | 3315 |
setShape:aShapeSymbol |
3316 |
"set the shape" |
|
160 | 3317 |
|
577 | 3318 |
shape := aShapeSymbol. |
0 | 3319 |
! |
3320 |
||
577 | 3321 |
setSourceForm:sForm maskForm:mForm hotX:hx hotY:hy |
3322 |
"set the forms and hotspot" |
|
0 | 3323 |
|
577 | 3324 |
sourceForm := sForm. |
3325 |
maskForm := mForm. |
|
3326 |
hotX := hx. |
|
3327 |
hotY := hy. |
|
3328 |
! ! |
|
157 | 3329 |
|
1811 | 3330 |
!Cursor methodsFor:'queries'! |
3331 |
||
3332 |
isAnimatedCursor |
|
3333 |
^ false |
|
3334 |
||
3335 |
"Created: 26.6.1997 / 11:12:48 / cg" |
|
3336 |
! ! |
|
3337 |
||
1140 | 3338 |
!Cursor class methodsFor:'documentation'! |
0 | 3339 |
|
577 | 3340 |
version |
4216
0a6a150d2c03
Release also the cursors forms when releasing a cursor.
Stefan Vogel <sv@exept.de>
parents:
3877
diff
changeset
|
3341 |
^ '$Header: /cvs/stx/stx/libview/Cursor.st,v 1.102 2004-09-06 17:56:20 stefan Exp $' |
0 | 3342 |
! ! |
3743 | 3343 |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3344 |
Cursor initialize! |