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