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