Cursor.st
author Claus Gittinger <cg@exept.de>
Mon, 13 Jan 1997 20:15:45 +0100
changeset 1188 2a4d644e8828
parent 1181 c413283ca28f
child 1224 2a2270ec4236
permissions -rw-r--r--
care for nil-windowGroup in #show and #showWhile: (which are ST-80 compatibility methods, anyway)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
48194c26a46c Initial revision
claus
parents:
diff changeset
     1
"
6
7ee0cfde237d *** empty log message ***
claus
parents: 3
diff changeset
     2
 COPYRIGHT (c) 1992 by Claus Gittinger
80
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
     3
	      All Rights Reserved
0
48194c26a46c Initial revision
claus
parents:
diff changeset
     4
48194c26a46c Initial revision
claus
parents:
diff changeset
     5
 This software is furnished under a license and may be used
48194c26a46c Initial revision
claus
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
48194c26a46c Initial revision
claus
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
48194c26a46c Initial revision
claus
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
48194c26a46c Initial revision
claus
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
48194c26a46c Initial revision
claus
parents:
diff changeset
    10
 hereby transferred.
48194c26a46c Initial revision
claus
parents:
diff changeset
    11
"
48194c26a46c Initial revision
claus
parents:
diff changeset
    12
48194c26a46c Initial revision
claus
parents:
diff changeset
    13
Object subclass:#Cursor
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    14
	instanceVariableNames:'shape sourceForm maskForm hotX hotY device cursorId'
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    15
	classVariableNames:'Lobby DefaultFgColor DefaultBgColor NormalCursor HandCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    16
		ArrowCursor WaitCursor CrossHairCursor OriginCursor CornerCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    17
		SquareCursor FourWayCursor UpDownArrowCursor LeftRightArrowCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    18
		ThumbsUpCursor ThumbsDownCursor ReadCursor WriteCursor XeqCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    19
		StopCursor EyeCursor BlankCursor MarkerCursor UpCursor DownCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    20
		LeftCursor RightCursor XMarkerCursor CaretCursor'
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    21
	poolDictionaries:''
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
    22
	category:'Graphics-Support'
0
48194c26a46c Initial revision
claus
parents:
diff changeset
    23
!
48194c26a46c Initial revision
claus
parents:
diff changeset
    24
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
    25
!Cursor class methodsFor:'documentation'!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
    26
46
7b331e9012fd *** empty log message ***
claus
parents: 38
diff changeset
    27
copyright
7b331e9012fd *** empty log message ***
claus
parents: 38
diff changeset
    28
"
7b331e9012fd *** empty log message ***
claus
parents: 38
diff changeset
    29
 COPYRIGHT (c) 1992 by Claus Gittinger
80
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
    30
	      All Rights Reserved
46
7b331e9012fd *** empty log message ***
claus
parents: 38
diff changeset
    31
7b331e9012fd *** empty log message ***
claus
parents: 38
diff changeset
    32
 This software is furnished under a license and may be used
7b331e9012fd *** empty log message ***
claus
parents: 38
diff changeset
    33
 only in accordance with the terms of that license and with the
7b331e9012fd *** empty log message ***
claus
parents: 38
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
7b331e9012fd *** empty log message ***
claus
parents: 38
diff changeset
    35
 be provided or otherwise made available to, or used by, any
7b331e9012fd *** empty log message ***
claus
parents: 38
diff changeset
    36
 other person.  No title to or ownership of the software is
7b331e9012fd *** empty log message ***
claus
parents: 38
diff changeset
    37
 hereby transferred.
7b331e9012fd *** empty log message ***
claus
parents: 38
diff changeset
    38
"
7b331e9012fd *** empty log message ***
claus
parents: 38
diff changeset
    39
!
7b331e9012fd *** empty log message ***
claus
parents: 38
diff changeset
    40
0
48194c26a46c Initial revision
claus
parents:
diff changeset
    41
documentation
38
2652fc96e660 *** empty log message ***
claus
parents: 35
diff changeset
    42
"
2652fc96e660 *** empty log message ***
claus
parents: 35
diff changeset
    43
    I represents cursors in a device independent manner.
144
claus
parents: 133
diff changeset
    44
    Normally, cursors are defined at view creation time,
601
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 577
diff changeset
    45
    via 
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    46
	'aView cursor:aCursor'.
601
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 577
diff changeset
    47
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 577
diff changeset
    48
    [Instance variables:]
0
48194c26a46c Initial revision
claus
parents:
diff changeset
    49
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    50
	shape           <Symbol>        a shape (i.e. #arrow, #hand, ...) or nil
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    51
	sourceForm      <Form>          if shape is nil, the source bits
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    52
	maskForm        <Form>          if shape is nil, the mask bits
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    53
	hotX            <SmallInteger>  if shape is nil, the hotSpot x of the cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    54
	hotY            <SmallInteger>  if shape is nil, the hotSpot y of the cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    55
	device          <aDevice>       the device, if associated to one
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    56
	cursorId        <anObject>      the device-specific id if device is nonNil
0
48194c26a46c Initial revision
claus
parents:
diff changeset
    57
601
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 577
diff changeset
    58
    [class variables:]
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 577
diff changeset
    59
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    60
	Lobby           <Registry>      keeps track of known device cursors
601
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 577
diff changeset
    61
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    62
	DefaultFgColor  <Color>         default foreground color for cursors (usually black)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    63
	DefaultBgColor  <Color>         default background color for cursors (usually white)
0
48194c26a46c Initial revision
claus
parents:
diff changeset
    64
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    65
	NormalCursor    <Cursor>        cached instance of normal (arrow) cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    66
	 ...
0
48194c26a46c Initial revision
claus
parents:
diff changeset
    67
601
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 577
diff changeset
    68
    [see also:]
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    69
	DeviceWorkstation 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    70
	DisplaySurface
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    71
	Font Cursor Color Form
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    72
	( introduction to view programming :html: programming/viewintro.html#CURSOR )
611
e0442439a3c6 documentation
Claus Gittinger <cg@exept.de>
parents: 601
diff changeset
    73
e0442439a3c6 documentation
Claus Gittinger <cg@exept.de>
parents: 601
diff changeset
    74
    [author:]
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    75
	Claus Gittinger
38
2652fc96e660 *** empty log message ***
claus
parents: 35
diff changeset
    76
"
144
claus
parents: 133
diff changeset
    77
!
claus
parents: 133
diff changeset
    78
claus
parents: 133
diff changeset
    79
examples
claus
parents: 133
diff changeset
    80
"
claus
parents: 133
diff changeset
    81
    get a standard cursor:
claus
parents: 133
diff changeset
    82
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    83
	Cursor wait
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    84
	Cursor stop
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    85
	Cursor normal
144
claus
parents: 133
diff changeset
    86
claus
parents: 133
diff changeset
    87
    create a custom cursor:
claus
parents: 133
diff changeset
    88
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    89
	Cursor extent:16@16 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    90
	       fromArray:#[ 2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    91
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    92
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    93
			    2r11111111 2r11111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    94
			    2r11111111 2r11111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    95
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    96
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    97
			    2r11111111 2r11111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    98
			    2r11111111 2r11111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    99
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   100
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   101
			    2r11111111 2r11111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   102
			    2r11111111 2r11111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   103
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   104
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   105
			    2r00000000 2r00000000]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   106
		offset:-8@ -8   
619
a46cb2ef56bf examples
Claus Gittinger <cg@exept.de>
parents: 611
diff changeset
   107
a46cb2ef56bf examples
Claus Gittinger <cg@exept.de>
parents: 611
diff changeset
   108
144
claus
parents: 133
diff changeset
   109
claus
parents: 133
diff changeset
   110
    define a cursor for a view:
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   111
									[exBegin]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   112
	|v|
144
claus
parents: 133
diff changeset
   113
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   114
	v := StandardSystemView extent:100@100.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   115
	v cursor:Cursor stop.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   116
	v open.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   117
									[exEnd]
619
a46cb2ef56bf examples
Claus Gittinger <cg@exept.de>
parents: 611
diff changeset
   118
144
claus
parents: 133
diff changeset
   119
claus
parents: 133
diff changeset
   120
      with above custom cursor:
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   121
									[exBegin]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   122
	|v|
144
claus
parents: 133
diff changeset
   123
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   124
	v := StandardSystemView extent:100@100.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   125
	v cursor:(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   126
	    Cursor extent:16@16 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   127
	       fromArray:#[ 2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   128
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   129
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   130
			    2r11111111 2r11111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   131
			    2r11111111 2r11111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   132
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   133
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   134
			    2r11111111 2r11111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   135
			    2r11111111 2r11111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   136
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   137
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   138
			    2r11111111 2r11111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   139
			    2r11111111 2r11111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   140
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   141
			    2r00000000 2r00000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   142
			    2r00000000 2r00000000]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   143
		offset:-8@ -8).   
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   144
	v open.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   145
									[exEnd]
619
a46cb2ef56bf examples
Claus Gittinger <cg@exept.de>
parents: 611
diff changeset
   146
144
claus
parents: 133
diff changeset
   147
claus
parents: 133
diff changeset
   148
      with multiple views:
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   149
									[exBegin]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   150
	|v1 v2 top|
144
claus
parents: 133
diff changeset
   151
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   152
	top := StandardSystemView new.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   153
	top extent:300@300.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   154
	v1 := View origin:0.0@0.0 corner:1.0@0.5 in:top.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   155
	v1 viewBackground:(Color grey:75).
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   156
	v1 cursor:Cursor thumbsUp.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   157
	v2 := View origin:0.0@0.5 corner:1.0@1.0 in:top.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   158
	v2 viewBackground:(Color white).
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   159
	v2 cursor:Cursor wait.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   160
	top open.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   161
									[exEnd]
144
claus
parents: 133
diff changeset
   162
claus
parents: 133
diff changeset
   163
702
Claus Gittinger <cg@exept.de>
parents: 627
diff changeset
   164
    show a cursor (in the active ST/X view) for a while:
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   165
									[exBegin]
619
a46cb2ef56bf examples
Claus Gittinger <cg@exept.de>
parents: 611
diff changeset
   166
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   167
	Cursor wait 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   168
	    showWhile:[
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   169
		Delay waitForSeconds:5
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   170
	    ]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   171
									[exEnd]
144
claus
parents: 133
diff changeset
   172
claus
parents: 133
diff changeset
   173
151
claus
parents: 145
diff changeset
   174
    show a cursor in all views belonging to a windowGroup:
claus
parents: 145
diff changeset
   175
    (have to wait until top is visible to access windowGroup)
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   176
									[exBegin]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   177
	|v1 v2 top|
151
claus
parents: 145
diff changeset
   178
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   179
	top := StandardSystemView new.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   180
	top extent:300@300.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   181
	v1 := View origin:0.0@0.0 corner:1.0@0.5 in:top.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   182
	v1 viewBackground:(Color grey:75).
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   183
	v1 cursor:(Cursor normal).
702
Claus Gittinger <cg@exept.de>
parents: 627
diff changeset
   184
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   185
	v2 := View origin:0.0@0.5 corner:1.0@1.0 in:top.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   186
	v2 viewBackground:(Color white).
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   187
	v2 cursor:(Cursor crossHair).
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   188
	top openAndWait.
151
claus
parents: 145
diff changeset
   189
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   190
	Delay waitForSeconds:3.
151
claus
parents: 145
diff changeset
   191
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   192
	top windowGroup
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   193
	    withCursor:Cursor wait 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   194
	    do:[
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   195
		  Delay waitForSeconds:5
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   196
	       ]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   197
									[exEnd]
151
claus
parents: 145
diff changeset
   198
claus
parents: 145
diff changeset
   199
144
claus
parents: 133
diff changeset
   200
    show a cursor in a single view for a while:
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   201
									[exBegin]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   202
	|v1 v2 top|
144
claus
parents: 133
diff changeset
   203
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   204
	top := StandardSystemView new.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   205
	top extent:300@300.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   206
	v1 := View origin:0.0@0.0 corner:1.0@0.5 in:top.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   207
	v1 viewBackground:(Color grey:75).
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   208
	v1 cursor:(Cursor normal).
702
Claus Gittinger <cg@exept.de>
parents: 627
diff changeset
   209
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   210
	v2 := View origin:0.0@0.5 corner:1.0@1.0 in:top.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   211
	v2 viewBackground:(Color white).
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   212
	v2 cursor:(Cursor crossHair).
702
Claus Gittinger <cg@exept.de>
parents: 627
diff changeset
   213
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   214
	top openAndWait.
702
Claus Gittinger <cg@exept.de>
parents: 627
diff changeset
   215
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   216
	Delay waitForSeconds:3.
144
claus
parents: 133
diff changeset
   217
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   218
	v1 withCursor:Cursor wait 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   219
	   do:[
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   220
		  Delay waitForSeconds:5
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   221
	      ]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   222
									[exEnd]
144
claus
parents: 133
diff changeset
   223
"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   224
! !
48194c26a46c Initial revision
claus
parents:
diff changeset
   225
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
   226
!Cursor class methodsFor:'initialization'!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   227
48194c26a46c Initial revision
claus
parents:
diff changeset
   228
flushDeviceCursors
48194c26a46c Initial revision
claus
parents:
diff changeset
   229
    "unassign all cursors from their device"
48194c26a46c Initial revision
claus
parents:
diff changeset
   230
223
fd68b1e7bde0 init Lobby
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   231
    Lobby notNil ifTrue:[
499
be87d609a62e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 363
diff changeset
   232
	Lobby do:[:aCursor |
223
fd68b1e7bde0 init Lobby
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   233
	    aCursor restored.
fd68b1e7bde0 init Lobby
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   234
	    Lobby registerChange:aCursor
499
be87d609a62e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 363
diff changeset
   235
	]
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   236
    ]
48194c26a46c Initial revision
claus
parents:
diff changeset
   237
!
48194c26a46c Initial revision
claus
parents:
diff changeset
   238
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   239
initialize
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   240
    Lobby isNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   241
	Lobby := Registry new.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   242
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   243
	"want to be informed when returning from snapshot"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   244
	ObjectMemory addDependent:self
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   245
    ]
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   246
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   247
864
dfd625885d59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 767
diff changeset
   248
update:something with:aParameter from:changedObject
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   249
    "sent when restarted after a snapIn"
48194c26a46c Initial revision
claus
parents:
diff changeset
   250
48194c26a46c Initial revision
claus
parents:
diff changeset
   251
    (something == #restarted) ifTrue:[
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   252
	self flushDeviceCursors
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   253
    ]
864
dfd625885d59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 767
diff changeset
   254
dfd625885d59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 767
diff changeset
   255
    "Created: 15.6.1996 / 15:18:47 / cg"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   256
! !
48194c26a46c Initial revision
claus
parents:
diff changeset
   257
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
   258
!Cursor class methodsFor:'instance creation'!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   259
48194c26a46c Initial revision
claus
parents:
diff changeset
   260
extent:extent fromArray:array offset:offset
48194c26a46c Initial revision
claus
parents:
diff changeset
   261
    "create a new bitmap cursor from bits in the array argument
48194c26a46c Initial revision
claus
parents:
diff changeset
   262
     - ST-80 compatibility"
48194c26a46c Initial revision
claus
parents:
diff changeset
   263
48194c26a46c Initial revision
claus
parents:
diff changeset
   264
    |sourceForm|
48194c26a46c Initial revision
claus
parents:
diff changeset
   265
48194c26a46c Initial revision
claus
parents:
diff changeset
   266
    sourceForm := Form extent:extent fromArray:array offset:offset.
48194c26a46c Initial revision
claus
parents:
diff changeset
   267
    ^ self sourceForm:sourceForm maskForm:sourceForm hotSpot:(offset negated)
48194c26a46c Initial revision
claus
parents:
diff changeset
   268
!
48194c26a46c Initial revision
claus
parents:
diff changeset
   269
48194c26a46c Initial revision
claus
parents:
diff changeset
   270
extent:extent sourceArray:sourceArray maskArray:maskArray offset:offset
48194c26a46c Initial revision
claus
parents:
diff changeset
   271
    "create a new bitmap cursor with mask from bits in sourceArray and
48194c26a46c Initial revision
claus
parents:
diff changeset
   272
     maskArray"
48194c26a46c Initial revision
claus
parents:
diff changeset
   273
48194c26a46c Initial revision
claus
parents:
diff changeset
   274
    |sourceForm maskForm|
48194c26a46c Initial revision
claus
parents:
diff changeset
   275
48194c26a46c Initial revision
claus
parents:
diff changeset
   276
    sourceForm := Form extent:extent fromArray:sourceArray offset:offset.
48194c26a46c Initial revision
claus
parents:
diff changeset
   277
    maskForm := Form extent:extent fromArray:maskArray offset:offset.
48194c26a46c Initial revision
claus
parents:
diff changeset
   278
    ^ self sourceForm:sourceForm maskForm:maskForm hotSpot:(offset negated)
48194c26a46c Initial revision
claus
parents:
diff changeset
   279
!
48194c26a46c Initial revision
claus
parents:
diff changeset
   280
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   281
fileCursorNamed:cursorName
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   282
    "return a cursor read from the files 'cursorName_bits.bit' and
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   283
     'cursorName_mask.bit' - return nil if file does not exist"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   284
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   285
    |cursorBits maskBits|
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   286
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
   287
    cursorBits := Image fromFile:('bitmaps/' , cursorName , '_bits.bit').
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   288
    cursorBits notNil ifTrue:[
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
   289
        maskBits := Image fromFile:('bitmaps/' , cursorName , '_mask.bit').
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
   290
        maskBits notNil ifTrue:[
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
   291
            ^ self sourceForm:cursorBits maskForm:maskBits
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
   292
        ]
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   293
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   294
    ^ nil
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
   295
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
   296
    "Modified: 1.1.1970 / 13:57:27 / cg"
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   297
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   298
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   299
imageArray:imageBits maskArray:maskBits
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   300
    "ST-80 compatible cursor creation - the extent is fixed to 16@16"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   301
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   302
    "name is ignored ..."
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   303
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   304
    ^ self imageArray:imageBits maskArray:maskBits hotSpot:8@8 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   305
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   306
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   307
imageArray:imageBits maskArray:maskBits hotSpot:hot
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   308
    "ST-80 compatible cursor creation - the extent is fixed to 16@16"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   309
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   310
    ^ self 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   311
	extent:16@16 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   312
	sourceArray:imageBits
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   313
	maskArray:maskBits
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   314
	offset:hot negated
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   315
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   316
    "
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   317
     |cursor|
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   318
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   319
     cursor := Cursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   320
	imageArray: #(
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   321
		2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   322
		2r0000000100001110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   323
		2r0000000100001110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   324
		2r0000000100001110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   325
		2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   326
		2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   327
		2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   328
		2r0111111111111110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   329
		2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   330
		2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   331
		2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   332
		2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   333
		2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   334
		2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   335
		2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   336
		2r0000000000000000)
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   337
	maskArray: #(
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   338
		2r0000001110011111
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   339
		2r0000001110011111
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   340
		2r0000001110011111
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   341
		2r0000001110011111
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   342
		2r0000001110011111
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   343
		2r0000001110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   344
		2r1111111111111111
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   345
		2r1111111111111111
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   346
		2r1111111111111111
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   347
		2r0000001110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   348
		2r0000001110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   349
		2r0000001110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   350
		2r0000001110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   351
		2r0000001110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   352
		2r0000001110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   353
		2r0000001110000000)
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   354
	hotSpot: 8@8.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   355
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   356
    WindowGroup activeGroup 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   357
	withCursor:cursor 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   358
	do:[(Delay forSeconds:10)wait]
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   359
    "
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   360
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   361
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   362
imageArray:imageBits maskArray:maskBits hotSpot:hot name:aString
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   363
    "ST-80 compatible cursor creation - the extent is fixed to 16@16"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   364
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   365
    "name is ignored ..."
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   366
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   367
    ^ self imageArray:imageBits maskArray:maskBits hotSpot:hot
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   368
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   369
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   370
shape:aShape 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   371
    "return one of the standard cursors.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   372
     Each display may offer different shapes - see for example XWorkstation
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   373
     for details (however a basic minimum set should be supported by all)"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   374
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   375
    |newCursor|
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   376
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   377
    "first look if not already known"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   378
    Lobby isNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   379
	self initialize
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   380
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   381
    Lobby do:[:aCursor |
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   382
	(aCursor shape == aShape) ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   383
	    ^ aCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   384
	]
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   385
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   386
    newCursor := self basicNew setShape:aShape.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   387
    Lobby register:newCursor.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   388
    ^ newCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   389
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   390
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   391
shape:aShape on:aDevice
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   392
    "return one of the standard cursors already associated to aDevice.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   393
     This is the same as '(Cursor shape:aShape) on:aDevice' but somwehat faster."
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   394
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   395
    |newCursor oldCursor|
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   396
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   397
    "first look if not already known"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   398
    Lobby isNil ifTrue:[
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   399
	self initialize
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   400
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   401
    Lobby do:[:aCursor |
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   402
	(aCursor shape == aShape) ifTrue:[
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   403
	    (aCursor graphicsDevice == aDevice) ifTrue:[^ aCursor].
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   404
	    oldCursor := aCursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   405
	].
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   406
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   407
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   408
    "found one with same shape, but different device"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   409
    oldCursor notNil ifTrue:[
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   410
	^ oldCursor newOn:aDevice
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   411
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   412
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   413
    newCursor := self basicNew setShape:aShape.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   414
    Lobby register:newCursor.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   415
    ^ newCursor
927
c4bc2a7ff733 use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents: 864
diff changeset
   416
c4bc2a7ff733 use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents: 864
diff changeset
   417
    "Modified: 5.7.1996 / 17:58:06 / cg"
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   418
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   419
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   420
sourceForm:aForm
48194c26a46c Initial revision
claus
parents:
diff changeset
   421
    "return a new cursor.
48194c26a46c Initial revision
claus
parents:
diff changeset
   422
     Source- and mask-Bits are taken from aForm; hotSpot is center"
48194c26a46c Initial revision
claus
parents:
diff changeset
   423
48194c26a46c Initial revision
claus
parents:
diff changeset
   424
    ^ self sourceForm:aForm
80
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   425
	     maskForm:aForm
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   426
		 hotX:(aForm width // 2)
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   427
		 hotY:(aForm height // 2)
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   428
!
48194c26a46c Initial revision
claus
parents:
diff changeset
   429
48194c26a46c Initial revision
claus
parents:
diff changeset
   430
sourceForm:sourceForm maskForm:maskForm
48194c26a46c Initial revision
claus
parents:
diff changeset
   431
    "return a new cursor. hotSpot is center"
48194c26a46c Initial revision
claus
parents:
diff changeset
   432
48194c26a46c Initial revision
claus
parents:
diff changeset
   433
    ^ self sourceForm:sourceForm
80
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   434
	     maskForm:maskForm
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   435
		 hotX:(sourceForm width // 2)
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   436
		 hotY:(sourceForm height // 2)
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   437
!
48194c26a46c Initial revision
claus
parents:
diff changeset
   438
48194c26a46c Initial revision
claus
parents:
diff changeset
   439
sourceForm:sourceForm maskForm:maskForm hotSpot:aPoint
48194c26a46c Initial revision
claus
parents:
diff changeset
   440
    "return a new cursor"
48194c26a46c Initial revision
claus
parents:
diff changeset
   441
48194c26a46c Initial revision
claus
parents:
diff changeset
   442
    ^ self sourceForm:sourceForm
80
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   443
	     maskForm:maskForm
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   444
		 hotX:(aPoint x)
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   445
		 hotY:(aPoint y)
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   446
!
48194c26a46c Initial revision
claus
parents:
diff changeset
   447
48194c26a46c Initial revision
claus
parents:
diff changeset
   448
sourceForm:sourceForm maskForm:maskForm hotX:hotX hotY:hotY
48194c26a46c Initial revision
claus
parents:
diff changeset
   449
    "return a new cursor"
48194c26a46c Initial revision
claus
parents:
diff changeset
   450
48194c26a46c Initial revision
claus
parents:
diff changeset
   451
    |newCursor|
48194c26a46c Initial revision
claus
parents:
diff changeset
   452
48194c26a46c Initial revision
claus
parents:
diff changeset
   453
    "first look if not already known"
223
fd68b1e7bde0 init Lobby
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   454
    Lobby isNil ifTrue:[
499
be87d609a62e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 363
diff changeset
   455
	self initialize
223
fd68b1e7bde0 init Lobby
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   456
    ].
115
1d93fd8c5371 *** empty log message ***
claus
parents: 89
diff changeset
   457
    Lobby do:[:aCursor |
80
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   458
	(aCursor sourceForm == sourceForm) ifTrue:[
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   459
	    (aCursor maskForm == maskForm) ifTrue:[
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   460
		(aCursor hotX == hotX) ifTrue:[
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   461
		    (aCursor hotY == hotY) ifTrue:[
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   462
			^ aCursor
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   463
		    ]
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   464
		]
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   465
	    ]
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   466
	]
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   467
    ].
35
f1a194c18429 *** empty log message ***
claus
parents: 23
diff changeset
   468
    (sourceForm isNil or:[maskForm isNil]) ifTrue:[^ nil].
f1a194c18429 *** empty log message ***
claus
parents: 23
diff changeset
   469
2
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
   470
    newCursor := self basicNew setSourceForm:sourceForm 
80
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   471
				    maskForm:maskForm
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   472
					hotX:hotX
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
   473
					hotY:hotY.
23
4a7e02de7b72 *** empty log message ***
claus
parents: 12
diff changeset
   474
    Lobby register:newCursor.
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   475
    ^ newCursor
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   476
! !
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   477
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
   478
!Cursor class methodsFor:'class initialization'!
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   479
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   480
initializeNewCursors
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   481
	"Create the new cursors
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   482
		Cursor blank
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   483
		Cursor down
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   484
		Cursor execute
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   485
		Cursor left
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   486
		Cursor marker
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   487
		Cursor normal
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   488
		Cursor read
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   489
		Cursor right
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   490
		Cursor square
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   491
		Cursor up
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   492
		Cursor wait
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   493
		Cursor write
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   494
		Cursor thumbsUp
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   495
		Cursor thumbsDown
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   496
		Cursor xMarker
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   497
		Cursor caret
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   498
		Cursor stop
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   499
		Cursor eye"
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   500
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   501
	|device|
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   502
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   503
" claus: already there in ST/X"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   504
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   505
"/        OriginCursor :=   
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   506
"/                (Cursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   507
"/                        extent: 16@16
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   508
"/                        fromArray: #(
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   509
"/                2r1111111111111111
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   510
"/                2r1111111111111111
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   511
"/                2r1100000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   512
"/                2r1100000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   513
"/                2r1100000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   514
"/                2r1100000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   515
"/                2r1100000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   516
"/                2r1100000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   517
"/                2r1100000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   518
"/                2r1100000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   519
"/                2r1100000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   520
"/                2r1100000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   521
"/                2r1100000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   522
"/                2r1100000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   523
"/                2r1100000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   524
"/                2r1100000000000000)
767
4f8cc0ee0e0b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 764
diff changeset
   525
"/                        offset: -2@ -2).
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   526
"/
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   527
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   528
" claus: already there in ST/X"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   529
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   530
"/        CornerCursor := 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   531
"/                (Cursor 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   532
"/                        extent: 16@16
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   533
"/                        fromArray: #(
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   534
"/                2r0000000000000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   535
"/                2r0000000000000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   536
"/                2r0000000000000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   537
"/                2r0000000000000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   538
"/                2r0000000000000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   539
"/                2r0000000000000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   540
"/                2r0000000000000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   541
"/                2r0000000000000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   542
"/                2r0000000000000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   543
"/                2r0000000000000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   544
"/                2r0000000000000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   545
"/                2r0000000000000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   546
"/                2r0000000000000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   547
"/                2r0000000000000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   548
"/                2r1111111111111111
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   549
"/                2r1111111111111111)
767
4f8cc0ee0e0b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 764
diff changeset
   550
"/                        offset: -14@ -14).
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   551
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   552
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   553
"original from SMACK:"
151
claus
parents: 145
diff changeset
   554
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   555
"/        ReadCursor :=  
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   556
"/                (Cursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   557
"/                        extent: 16@16
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   558
"/                        fromArray: #(
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   559
"/                2r0000110000000110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   560
"/                2r0001001000001001
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   561
"/                2r0001001000001001
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   562
"/                2r0010000000010000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   563
"/                2r0100000000100000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   564
"/                2r1111101111100000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   565
"/                2r1000010000100000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   566
"/                2r1000010000100000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   567
"/                2r1011010110100000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   568
"/                2r0111101111000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   569
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   570
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   571
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   572
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   573
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   574
"/                2r0000000000000000)
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   575
"/        offset: 0@0).
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   576
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   578
"claus: added mask"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   579
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   580
	ReadCursor := (Cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   581
			extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   582
			sourceArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   583
			    2r0
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   584
			    2r0000110000000110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   585
			    2r0001001000001001
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   586
			    2r0001001000001001
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   587
			    2r0010000000010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   588
			    2r0100000000100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   589
			    2r1111101111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   590
			    2r1000010000100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   591
			    2r1000010000100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   592
			    2r1011010110100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   593
			    2r0111101111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   594
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   595
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   596
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   597
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   598
			    2r0000000000000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   599
			maskArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   600
			    2r0001111000001111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   601
			    2r0001111000011111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   602
			    2r0011111000011111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   603
			    2r0011100000111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   604
			    2r0111000000111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   605
			    2r1111111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   606
			    2r1111111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   607
			    2r1111111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   608
			    2r1111111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   609
			    2r1111111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   610
			    2r1111111111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   611
			    2r0111111111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   612
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   613
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   614
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   615
			    2r0000000000000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   616
			offset: -5 @ -7).
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   617
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   618
"original from SMACK:"
151
claus
parents: 145
diff changeset
   619
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   620
"/        WriteCursor := (Cursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   621
"/        extent: 16@16
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   622
"/        fromArray: #(
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   623
"/                2r0000000000000110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   624
"/                2r0000000000001111
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   625
"/                2r0000000000010110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   626
"/                2r0000000000100100
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   627
"/                2r0000000001001000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   628
"/                2r0000000010010000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   629
"/                2r0000000100100000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   630
"/                2r0000001001000011
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   631
"/                2r0000010010000010
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   632
"/                2r0000100100000110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   633
"/                2r0001001000001000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   634
"/                2r0010010000001000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   635
"/                2r0111100001001000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   636
"/                2r0101000010111000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   637
"/                2r0110000110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   638
"/                2r1111111100000000)
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   639
"/        offset: 0@0).
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   640
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   641
"claus: added mask"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   642
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   643
	WriteCursor := (Cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   644
			  extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   645
			  sourceArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   646
			      2r0000000000000110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   647
			      2r0000000000001111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   648
			      2r0000000000010110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   649
			      2r0000000000100100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   650
			      2r0000000001001000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   651
			      2r0000000010010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   652
			      2r0000000100100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   653
			      2r0000001001000011
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   654
			      2r0000010010000010
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   655
			      2r0000100100000110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   656
			      2r0001001000001000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   657
			      2r0010010000001000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   658
			      2r0111100001001000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   659
			      2r0101000010111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   660
			      2r0110000110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   661
			      2r1111111100000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   662
			  maskArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   663
			      2r0000000000000111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   664
			      2r0000000000001111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   665
			      2r0000000000011110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   666
			      2r0000000000111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   667
			      2r0000000001111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   668
			      2r0000000011110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   669
			      2r0000000111100001
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   670
			      2r0000001111000110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   671
			      2r0000011110000110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   672
			      2r0000111100001110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   673
			      2r0001111000001100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   674
			      2r0011110001001100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   675
			      2r0111100011111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   676
			      2r0111000110111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   677
			      2r0111111110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   678
			      2r1111111100000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   679
			  offset: 0@ -15).
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   680
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   681
"original from SMACK:"
151
claus
parents: 145
diff changeset
   682
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   683
"/        WaitCursor := 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   684
"/                  (Cursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   685
"/                        extent: 16@16
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   686
"/                        fromArray: #(
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   687
"/                2r1111111111111111
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   688
"/                2r1000000000000001
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   689
"/                2r0100000000000010
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   690
"/                2r0010000000000100
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   691
"/                2r0001110000111000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   692
"/                2r0000111101110000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   693
"/                2r0000011011100000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   694
"/                2r0000001111000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   695
"/                2r0000001111000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   696
"/                2r0000010110100000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   697
"/                2r0000100010010000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   698
"/                2r0001000110001000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   699
"/                2r0010001101000100
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   700
"/                2r0100111111110010
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   701
"/                2r1011111111111101
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   702
"/                2r1111111111111111)
767
4f8cc0ee0e0b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 764
diff changeset
   703
"/                        offset: -8@ -8).
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   704
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   705
"claus: added mask"
151
claus
parents: 145
diff changeset
   706
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   707
	WaitCursor := 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   708
		  (Cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   709
			extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   710
			sourceArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   711
			    2r1111111111111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   712
			    2r1000000000000001
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   713
			    2r0100000000000010
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   714
			    2r0010000000000100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   715
			    2r0001110000111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   716
			    2r0000111101110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   717
			    2r0000011011100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   718
			    2r0000001111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   719
			    2r0000001111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   720
			    2r0000010110100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   721
			    2r0000100010010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   722
			    2r0001000110001000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   723
			    2r0010001101000100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   724
			    2r0100111111110010
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   725
			    2r1011111111111101
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   726
			    2r1111111111111111)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   727
			maskArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   728
			    2r1111111111111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   729
			    2r1111111111111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   730
			    2r1111111111111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   731
			    2r0111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   732
			    2r0011111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   733
			    2r0001111111111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   734
			    2r0000111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   735
			    2r0000011111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   736
			    2r0000011111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   737
			    2r0000111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   738
			    2r0001111111111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   739
			    2r0011111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   740
			    2r0111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   741
			    2r1111111111111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   742
			    2r1111111111111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   743
			    2r1111111111111111)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   744
			offset: -8@ -8).
151
claus
parents: 145
diff changeset
   745
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   746
	BlankCursor := Cursor new.
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   747
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   748
"original from SMACK:"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   749
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   750
"/        XeqCursor := 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   751
"/                (Cursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   752
"/                        extent: 16@16
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   753
"/                        fromArray: #(
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   754
"/                2r1000000000010000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   755
"/                2r1100000000010000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   756
"/                2r1110000000111000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   757
"/                2r1111000111111111
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   758
"/                2r1111100011000110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   759
"/                2r1111110001000100
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   760
"/                2r1111111001111100
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   761
"/                2r1111000001101100
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   762
"/                2r1101100011000110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   763
"/                2r1001100010000010
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   764
"/                2r0000110000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   765
"/                2r0000110000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   766
"/                2r0000011000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   767
"/                2r0000011000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   768
"/                2r0000001100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   769
"/                2r0000001100000000)
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   770
"/        offset: 0@0).
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   771
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   772
"claus: added mask"
151
claus
parents: 145
diff changeset
   773
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   774
	XeqCursor := 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   775
		(Cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   776
			extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   777
			sourceArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   778
		2r1000000000010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   779
		2r1100000000010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   780
		2r1110000000111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   781
		2r1111000111111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   782
		2r1111100011000110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   783
		2r1111110001000100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   784
		2r1111111001111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   785
		2r1111000001101100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   786
		2r1101100011000110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   787
		2r1001100010000010
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   788
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   789
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   790
		2r0000011000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   791
		2r0000011000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   792
		2r0000001100000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   793
		2r0000001100000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   794
			maskArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   795
		2r1100000000111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   796
		2r1110000000111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   797
		2r1111000111111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   798
		2r1111100111111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   799
		2r1111110011111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   800
		2r1111111001111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   801
		2r1111111101111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   802
		2r1111100001111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   803
		2r1101110011100111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   804
		2r1001110011000010
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   805
		2r0000111000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   806
		2r0000111000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   807
		2r0000011100000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   808
		2r0000011100000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   809
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   810
		2r0000001110000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   811
	offset: 0@0).
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   812
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   813
"claus: already there in ST/X"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   814
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   815
"/        SquareCursor := 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   816
"/                (Cursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   817
"/                        extent: 16@16
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   818
"/                        fromArray: #(
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   819
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   820
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   821
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   822
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   823
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   824
"/                2r0000001111000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   825
"/                2r0000001111000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   826
"/                2r0000001111000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   827
"/                2r0000001111000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   828
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   829
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   830
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   831
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   832
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   833
"/                2r0000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   834
"/                2r0000000000000000)
767
4f8cc0ee0e0b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 764
diff changeset
   835
"/        offset: -8@ -8).
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   836
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   837
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   838
"original from SMACK:"
151
claus
parents: 145
diff changeset
   839
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   840
"/        NormalCursor :=   
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   841
"/                (Cursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   842
"/                        extent: 16@16
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   843
"/                        fromArray: #(
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   844
"/                2r1000000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   845
"/                2r1100000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   846
"/                2r1110000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   847
"/                2r1111000000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   848
"/                2r1111100000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   849
"/                2r1111110000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   850
"/                2r1111111000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   851
"/                2r1111100000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   852
"/                2r1111100000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   853
"/                2r1001100000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   854
"/                2r0000110000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   855
"/                2r0000110000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   856
"/                2r0000011000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   857
"/                2r0000011000000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   858
"/                2r0000001100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   859
"/                2r0000001100000000)
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   860
"/        offset: 0@0).
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   861
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   862
"claus: added mask"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   863
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   864
	NormalCursor :=   
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   865
		(Cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   866
			extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   867
			sourceArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   868
		2r1000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   869
		2r1100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   870
		2r1110000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   871
		2r1111000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   872
		2r1111100000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   873
		2r1111110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   874
		2r1111111000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   875
		2r1111100000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   876
		2r1111100000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   877
		2r1001100000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   878
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   879
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   880
		2r0000011000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   881
		2r0000011000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   882
		2r0000001100000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   883
		2r0000001100000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   884
			maskArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   885
		2r1100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   886
		2r1110000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   887
		2r1111000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   888
		2r1111100000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   889
		2r1111110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   890
		2r1111111000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   891
		2r1111111100000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   892
		2r1111110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   893
		2r1111110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   894
		2r1001110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   895
		2r0000111000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   896
		2r0000111000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   897
		2r0000011100000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   898
		2r0000011100000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   899
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   900
		2r0000001110000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   901
	offset: 0@0).
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   902
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   903
"original from SMACK:"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   904
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   905
"/        CrossHairCursor :=   
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   906
"/                (Cursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   907
"/                        extent: 16@16
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   908
"/                            fromArray: #(
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   909
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   910
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   911
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   912
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   913
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   914
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   915
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   916
"/                2r1111111111111110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   917
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   918
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   919
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   920
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   921
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   922
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   923
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   924
"/                2r0)
767
4f8cc0ee0e0b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 764
diff changeset
   925
"/                        offset: -7@ -7).
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   926
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   927
"claus: added mask"
151
claus
parents: 145
diff changeset
   928
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   929
"no: already there in ST/X"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   930
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   931
"/        CrossHairCursor :=   
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   932
"/                (Cursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   933
"/                     extent: 16@16
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   934
"/                     sourceArray: #(
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   935
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   936
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   937
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   938
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   939
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   940
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   941
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   942
"/                2r1111111111111110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   943
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   944
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   945
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   946
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   947
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   948
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   949
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   950
"/                2r0)
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   951
"/                     maskArray: #(
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   952
"/                2r0000000110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   953
"/                2r0000000110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   954
"/                2r0000000110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   955
"/                2r0000000110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   956
"/                2r0000000110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   957
"/                2r0000000110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   958
"/                2r0000000110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   959
"/                2r1111111111111110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   960
"/                2r1111111111111110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   961
"/                2r0000000110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   962
"/                2r0000000110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   963
"/                2r0000000110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   964
"/                2r0000000110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   965
"/                2r0000000110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   966
"/                2r0000000110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   967
"/                2r0)
767
4f8cc0ee0e0b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 764
diff changeset
   968
"/                        offset: -7@ -7).
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
   969
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   970
	MarkerCursor := 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   971
		Cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   972
			extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   973
			fromArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   974
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   975
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   976
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   977
		2r0000001000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   978
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   979
		2r0000001111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   980
		2r1111111111111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   981
		2r1111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   982
		2r1111111111111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   983
		2r0000001111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   984
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   985
		2r0000001000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   986
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   987
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   988
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   989
		2r0000000000000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   990
			offset: -7@ -7.
151
claus
parents: 145
diff changeset
   991
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   992
	UpCursor := 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   993
		Cursor 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   994
			extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   995
			fromArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   996
		2r1000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   997
		2r1100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   998
		2r1110000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   999
		2r1111000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1000
		2r1111100000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1001
		2r1111110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1002
		2r1100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1003
		2r1100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1004
		2r1100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1005
		2r1100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1006
		2r1100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1007
		2r1100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1008
		2r1100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1009
		2r1100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1010
		2r1100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1011
		2r1100000000000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1012
			offset: 0@ -7.
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1013
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1014
	DownCursor :=
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1015
		 Cursor 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1016
			extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1017
			fromArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1018
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1019
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1020
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1021
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1022
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1023
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1024
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1025
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1026
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1027
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1028
		2r1111110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1029
		2r0111110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1030
		2r0011110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1031
		2r0001110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1032
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1033
		2r0000010000000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1034
			offset: -5@ -7.
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1035
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1036
	LeftCursor := 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1037
		Cursor 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1038
			extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1039
			fromArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1040
		2r1111111111111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1041
		2r0111111111111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1042
		2r0011110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1043
		2r0001110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1044
		2r0000110000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1045
		2r0000010000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1046
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1047
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1048
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1049
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1050
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1051
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1052
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1053
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1054
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1055
		2r0000000000000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1056
			offset: -7@0.
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1057
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1058
	RightCursor :=
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1059
		 Cursor 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1060
			extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1061
			fromArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1062
		2r0000000000100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1063
		2r0000000000110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1064
		2r0000000000111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1065
		2r0000000000111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1066
		2r1111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1067
		2r1111111111111111
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1068
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1069
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1070
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1071
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1072
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1073
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1074
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1075
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1076
		2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1077
		2r0000000000000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1078
			offset: -7@ -5.
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1079
	XMarkerCursor := 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1080
		Cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1081
			extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1082
			fromArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1083
		2r0
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1084
		2r0000000100000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1085
		2r0000000100000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1086
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1087
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1088
		2r0000011111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1089
		2r0000011111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1090
		2r0000111111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1091
		2r0000111111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1092
		2r0001111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1093
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1094
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1095
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1096
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1097
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1098
		2r0000001110000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1099
			offset: -7@ -7.
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1100
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1101
"original from SMACK:"
151
claus
parents: 145
diff changeset
  1102
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1103
"/        FourWayCursor := 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1104
"/                Cursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1105
"/                        extent: 16@16
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1106
"/                        fromArray: #(
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1107
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1108
"/                2r0000001110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1109
"/                2r0000011111000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1110
"/                2r0000111111100000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1111
"/                2r0001001110010000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1112
"/                2r0011001110011000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1113
"/                2r0111111111111100
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1114
"/                2r1111111111111110
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1115
"/                2r0111111111111100
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1116
"/                2r0011001110011000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1117
"/                2r0001001110010000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1118
"/                2r0000111111100000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1119
"/                2r0000011111000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1120
"/                2r0000001110000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1121
"/                2r0000000100000000
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1122
"/                2r0000000000000000)
767
4f8cc0ee0e0b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 764
diff changeset
  1123
"/                        offset: -7@ -7.
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1124
"/
151
claus
parents: 145
diff changeset
  1125
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1126
"claus: added mask"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1127
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1128
	FourWayCursor := 
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1129
		Cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1130
			extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1131
			sourceArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1132
		2r0000000100000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1133
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1134
		2r0000011111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1135
		2r0000111111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1136
		2r0001001110010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1137
		2r0011001110011000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1138
		2r0111111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1139
		2r1111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1140
		2r0111111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1141
		2r0011001110011000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1142
		2r0001001110010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1143
		2r0000111111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1144
		2r0000011111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1145
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1146
		2r0000000100000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1147
		2r0000000000000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1148
			maskArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1149
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1150
		2r0000011111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1151
		2r0000111111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1152
		2r0001111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1153
		2r0010111111101000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1154
		2r0111111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1155
		2r1111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1156
		2r1111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1157
		2r1111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1158
		2r0111111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1159
		2r0010111111101000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1160
		2r0001111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1161
		2r0000111111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1162
		2r0000011111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1163
		2r0000001110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1164
		2r0000000000000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1165
			offset: -7@ -7.
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1166
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1167
	ThumbsUpCursor := (Cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1168
			  extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1169
			  sourceArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1170
			      2r0000000000100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1171
			      2r0000000001010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1172
			      2r0000000010010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1173
			      2r0000000011110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1174
			      2r0000000100010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1175
			      2r0000000100010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1176
			      2r0001111100011000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1177
			      2r0010000100000110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1178
			      2r0100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1179
			      2r0111111000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1180
			      2r0100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1181
			      2r0111111000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1182
			      2r0100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1183
			      2r0011111000001110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1184
			      2r0001000000010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1185
			      2r0001111111100000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1186
			  maskArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1187
			      2r0000000000100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1188
			      2r0000000001110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1189
			      2r0000000011110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1190
			      2r0000000011110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1191
			      2r0000000111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1192
			      2r0000000111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1193
			      2r0001111111111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1194
			      2r0011111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1195
			      2r0111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1196
			      2r0111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1197
			      2r0111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1198
			      2r0111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1199
			      2r0111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1200
			      2r0011111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1201
			      2r0001111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1202
			      2r0001111111100000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1203
			  offset: -8@ -8).
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1204
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1205
	CaretCursor := (Cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1206
			extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1207
			fromArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1208
			    2r0000000110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1209
			    2r0000000110000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1210
			    2r0000001111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1211
			    2r0000011111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1212
			    2r0000011001100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1213
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1214
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1215
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1216
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1217
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1218
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1219
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1220
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1221
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1222
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1223
			    2r0000000000000000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1224
			offset: -8@0).
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1225
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1226
	ThumbsDownCursor := (Cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1227
			  extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1228
			  sourceArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1229
			      2r0001111111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1230
			      2r0001000000010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1231
			      2r0011111000001110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1232
			      2r0100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1233
			      2r0111111000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1234
			      2r0100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1235
			      2r0111111000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1236
			      2r0100000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1237
			      2r0010000100000110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1238
			      2r0001111100011000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1239
			      2r0000000100010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1240
			      2r0000000100010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1241
			      2r0000000011110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1242
			      2r0000000010010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1243
			      2r0000000001010000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1244
			      2r0000000000100000)
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1245
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1246
			  maskArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1247
			      2r0001111111100000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1248
			      2r0001111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1249
			      2r0011111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1250
			      2r0111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1251
			      2r0111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1252
			      2r0111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1253
			      2r0111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1254
			      2r0111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1255
			      2r0011111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1256
			      2r0001111111111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1257
			      2r0000000111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1258
			      2r0000000111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1259
			      2r0000000011110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1260
			      2r0000000011110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1261
			      2r0000000001110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1262
			      2r0000000000100000)
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1263
			  offset: -8@ -8).
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1264
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1265
	StopCursor := (Cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1266
			extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1267
			sourceArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1268
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1269
			    2r0000011111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1270
			    2r0001111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1271
			    2r0011111111111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1272
			    2r0011111111111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1273
			    2r0111111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1274
			    2r0111111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1275
			    2r0100000000000100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1276
			    2r0100000000000100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1277
			    2r0111111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1278
			    2r0111111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1279
			    2r0011111111111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1280
			    2r0011111111111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1281
			    2r0001111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1282
			    2r0000011111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1283
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1284
			    )
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1285
			maskArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1286
			    2r0000011111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1287
			    2r0001111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1288
			    2r0011111111111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1289
			    2r0111111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1290
			    2r0111111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1291
			    2r1111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1292
			    2r1111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1293
			    2r1111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1294
			    2r1111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1295
			    2r1111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1296
			    2r1111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1297
			    2r0111111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1298
			    2r0111111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1299
			    2r0011111111111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1300
			    2r0001111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1301
			    2r0000011111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1302
			   )
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1303
			offset: -8 @ -8).
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1304
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1305
	EyeCursor := (Cursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1306
			extent: 16@16
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1307
			sourceArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1308
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1309
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1310
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1311
			    2r0000011111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1312
			    2r0001111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1313
			    2r0011000000011000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1314
			    2r0110001110001100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1315
			    2r1100011111000110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1316
			    2r1100011111000110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1317
			    2r0110001110001100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1318
			    2r0011000000011000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1319
			    2r0001111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1320
			    2r0000011111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1321
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1322
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1323
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1324
			    )
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1325
			maskArray: #(
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1326
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1327
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1328
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1329
			    2r0000011111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1330
			    2r0001111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1331
			    2r0011111111111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1332
			    2r0111111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1333
			    2r1111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1334
			    2r1111111111111110
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1335
			    2r0111111111111100
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1336
			    2r0011111111111000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1337
			    2r0001111111110000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1338
			    2r0000011111000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1339
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1340
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1341
			    2r0000000000000000
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1342
			   )
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1343
			offset: -8 @ -8).
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1344
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1345
      device := Display.
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1346
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1347
      FourWayCursor := FourWayCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1348
      LeftCursor := LeftCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1349
      RightCursor := RightCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1350
      XMarkerCursor := XMarkerCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1351
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1352
"/      OriginCursor := OriginCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1353
"/      CornerCursor := CornerCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1354
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1355
      ReadCursor := ReadCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1356
      WriteCursor := WriteCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1357
      WaitCursor := WaitCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1358
      XeqCursor := XeqCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1359
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1360
"/      SquareCursor := SquareCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1361
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1362
      NormalCursor := NormalCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1363
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1364
"/      CrossHairCursor := CrossHairCursor on:device.
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1365
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1366
      MarkerCursor := MarkerCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1367
      UpCursor := UpCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1368
      DownCursor := DownCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1369
      LeftCursor := LeftCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1370
      RightCursor := RightCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1371
      XMarkerCursor := XMarkerCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1372
      CaretCursor := CaretCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1373
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1374
      ThumbsUpCursor := ThumbsUpCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1375
      ThumbsDownCursor := ThumbsDownCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1376
      StopCursor := StopCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1377
      EyeCursor := EyeCursor on:device.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1378
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1379
      "Cursor initializeNewCursors"
764
1555bff9cb86 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1380
1555bff9cb86 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 733
diff changeset
  1381
    "Modified: 29.5.1996 / 15:03:44 / cg"
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1382
! !
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1383
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1384
!Cursor class methodsFor:'default access'!
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1385
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1386
defaultFgColor:fgColor defaultBgColor:bgColor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1387
    "set the default colors used for cursors"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1388
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1389
    DefaultFgColor := fgColor.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1390
    DefaultBgColor := bgColor
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1391
! !
48194c26a46c Initial revision
claus
parents:
diff changeset
  1392
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1393
!Cursor class methodsFor:'standard cursors'!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1394
48194c26a46c Initial revision
claus
parents:
diff changeset
  1395
arrow
48194c26a46c Initial revision
claus
parents:
diff changeset
  1396
    "return an arrow (up-left-arrow) cursor"
48194c26a46c Initial revision
claus
parents:
diff changeset
  1397
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1398
    ^ self shape:#upLeftArrow on:Display
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1399
!
48194c26a46c Initial revision
claus
parents:
diff changeset
  1400
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1401
blank 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1402
	"Answer the instance of me that is an invisible cursor."
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1403
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1404
	^BlankCursor!
80
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1405
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1406
bottomLeft
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1407
    "return a bottom-left corner cursor"
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1408
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1409
    ^ self shape:#bottomLeft on:Display
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1410
!
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1411
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1412
bottomRight
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1413
    "return a bottom-right corner cursor"
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1414
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1415
    ^ self corner
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1416
!
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1417
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1418
caret 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1419
	"return a caret cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1420
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1421
	^ CaretCursor!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1422
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1423
corner 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1424
    "return a corner cursor"
80
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1425
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1426
    CornerCursor isNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1427
	CornerCursor := self shape:#corner on:Display
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1428
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1429
    ^ CornerCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1430
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1431
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1432
cross
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1433
    "return a cross cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1434
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1435
    ^ self shape:#cross on:Display
80
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1436
!
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1437
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1438
crossHair
48194c26a46c Initial revision
claus
parents:
diff changeset
  1439
    "return a crossHair cursor"
48194c26a46c Initial revision
claus
parents:
diff changeset
  1440
48194c26a46c Initial revision
claus
parents:
diff changeset
  1441
    CrossHairCursor isNil ifTrue:[
80
eb8373679a9f *** empty log message ***
claus
parents: 71
diff changeset
  1442
	CrossHairCursor := self shape:#crossHair on:Display
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1443
    ].
48194c26a46c Initial revision
claus
parents:
diff changeset
  1444
    ^ CrossHairCursor
48194c26a46c Initial revision
claus
parents:
diff changeset
  1445
!
48194c26a46c Initial revision
claus
parents:
diff changeset
  1446
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1447
down
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1448
	"Answer the instance of me that is the shape of a down-arrow."
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1449
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1450
	^DownCursor!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1451
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1452
downLimitArrow
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1453
    "return a down-arrow-to-limit cursor"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1454
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1455
    ^ self shape:#downLimitArrow on:Display
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1456
!
48194c26a46c Initial revision
claus
parents:
diff changeset
  1457
48194c26a46c Initial revision
claus
parents:
diff changeset
  1458
execute
157
claus
parents: 151
diff changeset
  1459
    "return a execute cursor - (the default here is a wait-cursor)"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1460
157
claus
parents: 151
diff changeset
  1461
    XeqCursor notNil ifTrue:[
claus
parents: 151
diff changeset
  1462
	^ XeqCursor
claus
parents: 151
diff changeset
  1463
    ].
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1464
    ^ self wait
56
cc69f5a6a51d thumbsUp/Down for compatibility
claus
parents: 54
diff changeset
  1465
!
cc69f5a6a51d thumbsUp/Down for compatibility
claus
parents: 54
diff changeset
  1466
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1467
eye 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1468
	"return an eye cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1469
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1470
	^ EyeCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1471
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1472
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1473
fourWay 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1474
    "return a four-way arrow cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1475
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1476
    FourWayCursor isNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1477
	FourWayCursor := self shape:#fourWay on:Display
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1478
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1479
    ^ FourWayCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1480
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1481
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1482
hand
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1483
    "return a hand cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1484
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1485
    HandCursor isNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1486
	HandCursor := self shape:#upRightHand on:Display
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1487
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1488
    ^ HandCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1489
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1490
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1491
left
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1492
	"Answer the instance of me that is the shape of an arrow facing to the left."
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1493
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1494
	^LeftCursor!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1495
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1496
leftHand
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1497
    "return a left-hand cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1498
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1499
    ^ self shape:#leftHand
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1500
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1501
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1502
leftLimitArrow
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1503
    "return a left-arrow-to-limit cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1504
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1505
    ^ self shape:#leftLimitArrow on:Display
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1506
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1507
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1508
leftRightArrow
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1509
    "return a left-right-arrow cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1510
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1511
    LeftRightArrowCursor isNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1512
	LeftRightArrowCursor := self shape:#leftRightArrow on:Display
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1513
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1514
    ^ LeftRightArrowCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1515
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1516
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1517
marker
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1518
	"Answer the instance of me that is the shape of a horizontal arrow."
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1519
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1520
	^MarkerCursor!
56
cc69f5a6a51d thumbsUp/Down for compatibility
claus
parents: 54
diff changeset
  1521
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1522
normal
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1523
    "return the normal cursor; an arrow.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1524
     for ST-80 compatibility"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1525
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1526
    NormalCursor isNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1527
	NormalCursor := self arrow on:Display
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1528
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1529
    ^ NormalCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1530
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1531
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1532
origin
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1533
    "return an origin cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1534
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1535
    OriginCursor isNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1536
	OriginCursor := self shape:#origin on:Display
157
claus
parents: 151
diff changeset
  1537
    ].
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1538
    ^ OriginCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1539
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1540
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1541
questionMark
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1542
    "return a question-mark cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1543
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1544
    ^ self shape:#questionMark on:Display
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1545
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1546
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1547
read
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1548
    "return a reading-file cursor (the default here is a wait-cursor)"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1549
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1550
    ReadCursor notNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1551
	^ ReadCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1552
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1553
    ^ self wait
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1554
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1555
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1556
right
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1557
	"Answer the instance of me that is the shape of an arrow facing to the right."
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1558
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1559
	^RightCursor!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1560
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1561
rightLimitArrowOn
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1562
    "return a right-arrow-to-limit cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1563
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1564
    ^ self shape:#rightLimitArrow on:Display
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1565
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1566
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1567
stop
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1568
    "return a stop cursor (the default here is a wait-cursor)"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1569
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1570
    StopCursor notNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1571
	^ StopCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1572
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1573
    ^ self wait
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1574
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1575
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1576
text
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1577
    "return a text-cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1578
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1579
    ^ self shape:#text on:Display
56
cc69f5a6a51d thumbsUp/Down for compatibility
claus
parents: 54
diff changeset
  1580
!
cc69f5a6a51d thumbsUp/Down for compatibility
claus
parents: 54
diff changeset
  1581
cc69f5a6a51d thumbsUp/Down for compatibility
claus
parents: 54
diff changeset
  1582
thumbsDown
cc69f5a6a51d thumbsUp/Down for compatibility
claus
parents: 54
diff changeset
  1583
    "return a hand cursor - ST-80 compatibility"
cc69f5a6a51d thumbsUp/Down for compatibility
claus
parents: 54
diff changeset
  1584
157
claus
parents: 151
diff changeset
  1585
    ThumbsDownCursor notNil ifTrue:[
claus
parents: 151
diff changeset
  1586
	^ ThumbsDownCursor
claus
parents: 151
diff changeset
  1587
    ].
56
cc69f5a6a51d thumbsUp/Down for compatibility
claus
parents: 54
diff changeset
  1588
    ^ self hand
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1589
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1590
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1591
thumbsUp
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1592
    "return a hand cursor - ST-80 compatibility"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1593
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1594
    ThumbsUpCursor notNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1595
	^ ThumbsUpCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1596
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1597
    ^ self hand
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1598
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1599
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1600
topLeft 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1601
    "return a top-left corner cursor"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1602
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1603
    ^ self origin
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1604
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1605
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1606
topRight 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1607
    "return a top-right corner cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1608
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1609
    ^ self shape:#topRight on:Display
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1610
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1611
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1612
up
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1613
	"Answer the instance of me that is the shape of an up-arrow."
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1614
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1615
	^UpCursor!
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1616
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1617
upDownArrow
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1618
    "return an up-down-arrow cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1619
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1620
    UpDownArrowCursor isNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1621
	UpDownArrowCursor := self shape:#upDownArrow on:Display
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1622
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1623
    ^ UpDownArrowCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1624
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1625
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1626
upLeftArrow
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1627
    "return an up-right-arrow cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1628
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1629
    ^ self shape:#upLeftArrow on:Display
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1630
!
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1631
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1632
upLimitArrow
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1633
    "return an up-arrow-to-limit cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1634
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1635
    ^ self shape:#upLimitArrow on:Display
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1636
!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1637
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1638
upRightArrow
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1639
    "return an up-right-arrow cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1640
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1641
    ^ self shape:#upRightArrow on:Display
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1642
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1643
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1644
upRightHand
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1645
    "return an up-right-hand cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1646
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1647
    ^ self shape:#upRightHand
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1648
!
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1649
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1650
wait
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1651
    "return a wait cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1652
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1653
    WaitCursor isNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1654
	WaitCursor := self shape:#wait on:Display
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1655
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1656
    ^ WaitCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1657
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1658
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1659
write
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1660
    "return a writing-file cursor (the default here is a wait-cursor)"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1661
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1662
    WriteCursor notNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1663
	^ WriteCursor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1664
    ].
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1665
    ^ self wait
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1666
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1667
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1668
xMarker
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1669
	"Answer the instance of me that is displayed when thumb-scrolling on the x-axis."
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1670
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1671
	^XMarkerCursor! !
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1672
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1673
!Cursor methodsFor:'ST-80 displaying'!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1674
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1675
displayOn:aGC at:origin clippingBox:aRectangle rule:aRule mask:aMask
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1676
    "ST-80 compatibility;
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1677
     limited functionality: can only display bitmap cursors (yet)"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1678
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1679
    sourceForm notNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1680
	sourceForm displayOn:aGC at:origin clippingBox:aRectangle 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1681
			rule:aRule mask:aMask
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1682
    ]
2
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
  1683
!
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
  1684
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1685
show
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1686
    "ST-80 mimicri: change cursors in active groups views to the receiver."
2
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
  1687
1188
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1688
    |wg|
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1689
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1690
    (wg := WindowGroup activeGroup) notNil ifTrue:[
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1691
        wg showCursor:self
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1692
    ]
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1693
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1694
    "Modified: 13.1.1997 / 20:10:01 / cg"
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1695
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1696
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1697
showIn:aView 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1698
    "ST-80 mimicri: install the receiver as aViews cursor"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1699
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1700
    aView cursor:self
2
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
  1701
!
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
  1702
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1703
showIn:aView while:aBlock
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1704
    "ST-80 mimicri: change aViews cursors to the receiver, while evaluationg aBlock.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1705
     Return the value as returned by aBlock."
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1706
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1707
    |savedCursor|
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1708
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1709
    savedCursor := aView cursor.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1710
    aView cursor:self.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1711
    ^ aBlock valueNowOrOnUnwindDo:[aView cursor:savedCursor]
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1712
!
2
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
  1713
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1714
showWhile:aBlock
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1715
    "ST-80 mimicri: change all views cursors to the receiver.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1716
     Return the value as returned by aBlock."
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1717
1188
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1718
    |wg|
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1719
1188
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1720
    (wg := WindowGroup activeGroup) notNil ifTrue:[
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1721
        ^ wg withCursor:self do:aBlock
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1722
    ] ifFalse:[
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1723
        aBlock value
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1724
    ]
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1725
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1726
    "Modified: 13.1.1997 / 20:10:25 / cg"
2
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
  1727
! !
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
  1728
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1729
!Cursor methodsFor:'accessing'!
48194c26a46c Initial revision
claus
parents:
diff changeset
  1730
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1731
device
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1732
    "return the device I am associated with"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1733
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1734
    ^ device
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1735
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1736
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1737
foreground:fgColor background:bgColor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1738
    "set the cursor colors"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1739
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1740
    device colorCursor:cursorId foreground:fgColor background:bgColor
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1741
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1742
733
131299fba292 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1743
graphicsDevice
131299fba292 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1744
    "same as #device, for ST-80 compatibility naming.
131299fba292 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1745
     Return the device I am associated with."
131299fba292 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1746
131299fba292 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1747
    ^ device
131299fba292 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1748
131299fba292 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1749
    "Created: 28.5.1996 / 18:39:01 / cg"
131299fba292 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1750
!
131299fba292 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 727
diff changeset
  1751
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1752
hotX
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1753
    "return the hotspots x-coordinate of the receiver"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1754
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1755
    ^ hotX
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1756
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1757
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1758
hotY
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1759
    "return the hotspots y-coordinate of the receiver"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1760
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1761
    ^ hotY
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1762
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1763
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1764
id
48194c26a46c Initial revision
claus
parents:
diff changeset
  1765
    "return the cursors deviceId"
48194c26a46c Initial revision
claus
parents:
diff changeset
  1766
48194c26a46c Initial revision
claus
parents:
diff changeset
  1767
    ^ cursorId
48194c26a46c Initial revision
claus
parents:
diff changeset
  1768
!
48194c26a46c Initial revision
claus
parents:
diff changeset
  1769
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1770
maskForm
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1771
    "return the mask-form of the receiver"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1772
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1773
    ^ maskForm
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1774
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1775
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1776
maskForm:aForm
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1777
    "set the mask-form of the receiver"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1778
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1779
    maskForm := aForm
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1780
!
48194c26a46c Initial revision
claus
parents:
diff changeset
  1781
48194c26a46c Initial revision
claus
parents:
diff changeset
  1782
shape
48194c26a46c Initial revision
claus
parents:
diff changeset
  1783
    "return the shape"
48194c26a46c Initial revision
claus
parents:
diff changeset
  1784
48194c26a46c Initial revision
claus
parents:
diff changeset
  1785
    ^ shape
48194c26a46c Initial revision
claus
parents:
diff changeset
  1786
!
48194c26a46c Initial revision
claus
parents:
diff changeset
  1787
48194c26a46c Initial revision
claus
parents:
diff changeset
  1788
sourceForm
48194c26a46c Initial revision
claus
parents:
diff changeset
  1789
    "return the source-form of the receiver"
48194c26a46c Initial revision
claus
parents:
diff changeset
  1790
48194c26a46c Initial revision
claus
parents:
diff changeset
  1791
    ^ sourceForm
48194c26a46c Initial revision
claus
parents:
diff changeset
  1792
!
48194c26a46c Initial revision
claus
parents:
diff changeset
  1793
48194c26a46c Initial revision
claus
parents:
diff changeset
  1794
sourceForm:aForm
48194c26a46c Initial revision
claus
parents:
diff changeset
  1795
    "set the source-form of the receiver"
48194c26a46c Initial revision
claus
parents:
diff changeset
  1796
48194c26a46c Initial revision
claus
parents:
diff changeset
  1797
    sourceForm := aForm
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1798
! !
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1799
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1800
!Cursor methodsFor:'copying'!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1801
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1802
postCopy
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1803
    sourceForm := sourceForm copy.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1804
    maskForm := maskForm copy.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1805
    device := cursorId := nil
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1806
! !
48194c26a46c Initial revision
claus
parents:
diff changeset
  1807
48194c26a46c Initial revision
claus
parents:
diff changeset
  1808
!Cursor methodsFor:'creating a device cursor'!
48194c26a46c Initial revision
claus
parents:
diff changeset
  1809
48194c26a46c Initial revision
claus
parents:
diff changeset
  1810
on:aDevice
48194c26a46c Initial revision
claus
parents:
diff changeset
  1811
    "create a new Cursor representing the same cursor as
48194c26a46c Initial revision
claus
parents:
diff changeset
  1812
     myself on aDevice; if one already exists, return the one"
48194c26a46c Initial revision
claus
parents:
diff changeset
  1813
48194c26a46c Initial revision
claus
parents:
diff changeset
  1814
    aDevice isNil ifTrue:[
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1815
	"this may not happen"
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1816
	self error:'nil device'
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1817
    ].
48194c26a46c Initial revision
claus
parents:
diff changeset
  1818
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1819
    "if I am already assigned to that device ..."
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1820
    (device == aDevice) ifTrue:[^ self].
48194c26a46c Initial revision
claus
parents:
diff changeset
  1821
48194c26a46c Initial revision
claus
parents:
diff changeset
  1822
    "first look if not already there"
115
1d93fd8c5371 *** empty log message ***
claus
parents: 89
diff changeset
  1823
    Lobby do:[:aCursor |
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1824
	(aCursor graphicsDevice == aDevice) ifTrue:[
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1825
	    shape notNil ifTrue:[
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1826
		(aCursor shape == shape) ifTrue:[
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1827
		    ^ aCursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1828
		]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1829
	    ] ifFalse:[
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1830
		(aCursor sourceForm == sourceForm) ifTrue:[
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1831
		    (aCursor maskForm == maskForm) ifTrue:[
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1832
			(aCursor hotX == hotX) ifTrue:[
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1833
			    (aCursor hotY == hotY) ifTrue:[
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1834
				^ aCursor
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1835
			    ]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1836
			]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1837
		    ]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1838
		]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1839
	    ]
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1840
	]
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1841
    ].
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1842
    ^ self newOn:aDevice
927
c4bc2a7ff733 use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents: 864
diff changeset
  1843
c4bc2a7ff733 use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents: 864
diff changeset
  1844
    "Modified: 5.7.1996 / 17:58:00 / cg"
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1845
! !
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1846
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1847
!Cursor methodsFor:'instance release'!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1848
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1849
disposed
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1850
    "some Cursor has been collected - tell it to the x-server"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1851
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1852
    cursorId notNil ifTrue:[
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1853
	device destroyCursor:cursorId.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1854
    ]
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1855
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1856
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1857
shallowCopyForFinalization
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1858
    "redefined to return a lightweight copy 
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1859
     - all we need is the device handle"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1860
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1861
    ^ self class basicNew setDevice:device id:cursorId
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1862
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1863
    "Modified: 20.4.1996 / 23:23:19 / cg"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1864
! !
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1865
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1866
!Cursor methodsFor:'private'!
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1867
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1868
device:aDevice
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1869
    device := aDevice
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1870
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1871
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1872
id:anId
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1873
    "set the cursors deviceId"
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1874
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1875
    cursorId := anId
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1876
!
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1877
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1878
newOn:aDevice
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1879
    "create a new Cursor representing the same cursor as
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1880
     myself on aDevice. Dont search the lobby."
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1881
974
12797746a1f7 WIN32 changes
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1882
    |newCursor id sF mF w h|
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1883
48194c26a46c Initial revision
claus
parents:
diff changeset
  1884
    "ask that device for the cursor"
48194c26a46c Initial revision
claus
parents:
diff changeset
  1885
    shape notNil ifTrue:[
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1886
        id := aDevice createCursorShape:shape.
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1887
        id isNil ifTrue:[
1178
f04f14bc3c46 newStyle info & error messages
Claus Gittinger <cg@exept.de>
parents: 1140
diff changeset
  1888
            'Cursor [warning]: no cursor with shape:' errorPrint. shape errorPrintCR.
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1889
            ^ self
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1890
        ].
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1891
    ] ifFalse:[
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1892
        aDevice needDeviceFormsForCursor ifTrue:[
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1893
            sourceForm notNil ifTrue:[
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1894
                sF := sourceForm asFormOn:aDevice.
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1895
            ].
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1896
            maskForm notNil ifTrue:[
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1897
                mF := maskForm asFormOn:aDevice.
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1898
            ].
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1899
            (sF notNil and:[mF notNil]) ifTrue:[
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1900
                sourceForm := sF.
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1901
                maskForm := mF.
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1902
            ].
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1903
        ] ifFalse:[
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1904
            sourceForm notNil ifTrue:[
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1905
                sF := sourceForm bits
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1906
            ].
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1907
            maskForm notNil ifTrue:[
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1908
                mF := maskForm bits.
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1909
            ].
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1910
        ].
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1911
        (sF isNil or:[mF isNil]) ifTrue:[
1181
c413283ca28f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
  1912
            'Cursor [warning]: cursor has no form' errorPrintCR.
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1913
            ^ self
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1914
        ].
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1915
        w := sourceForm width.
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1916
        h := sourceForm height.
133
claus
parents: 115
diff changeset
  1917
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1918
        id := aDevice createCursorSourceForm:sF
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1919
                                    maskForm:mF
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1920
                                        hotX:hotX
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1921
                                        hotY:hotY
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1922
                                       width:w
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1923
                                      height:h.
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1924
        id isNil ifTrue:[
1178
f04f14bc3c46 newStyle info & error messages
Claus Gittinger <cg@exept.de>
parents: 1140
diff changeset
  1925
            'Cursor [warning]: cannot create pixmap cursor' errorPrintCR.
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1926
            ^ self
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1927
        ].
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1928
    ].
48194c26a46c Initial revision
claus
parents:
diff changeset
  1929
48194c26a46c Initial revision
claus
parents:
diff changeset
  1930
    "goody for IRIXs red cursor"
48194c26a46c Initial revision
claus
parents:
diff changeset
  1931
    DefaultFgColor notNil ifTrue:[
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1932
        aDevice colorCursor:id foreground:DefaultFgColor
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1933
                               background:DefaultBgColor
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1934
    ].
48194c26a46c Initial revision
claus
parents:
diff changeset
  1935
48194c26a46c Initial revision
claus
parents:
diff changeset
  1936
    device isNil ifTrue:[
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1937
        "receiver was not associated - do it now"
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1938
        device := aDevice.
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1939
        cursorId := id.
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1940
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1941
        "must re-register, the old registration had a nil cursorId in it"
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1942
        Lobby registerChange:self.
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1943
        ^ self
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1944
    ].
48194c26a46c Initial revision
claus
parents:
diff changeset
  1945
48194c26a46c Initial revision
claus
parents:
diff changeset
  1946
    "receiver was already associated to another device - need a new cursor"
2
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
  1947
    newCursor := self class basicNew.
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1948
    shape notNil ifTrue:[
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1949
        newCursor setShape:shape.
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1950
    ] ifFalse:[
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1951
        newCursor setSourceForm:sourceForm
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1952
                       maskForm:maskForm
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1953
                           hotX:hotX
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1954
                           hotY:hotY
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1955
    ].
2
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
  1956
    newCursor setDevice:aDevice id:id.
23
4a7e02de7b72 *** empty log message ***
claus
parents: 12
diff changeset
  1957
    Lobby register:newCursor.
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1958
    ^ newCursor
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1959
1181
c413283ca28f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1178
diff changeset
  1960
    "Modified: 10.1.1997 / 19:08:20 / cg"
71
6a42b2b115f8 *** empty log message ***
claus
parents: 56
diff changeset
  1961
!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1962
2
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
  1963
restored
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1964
    "set both device and id"
48194c26a46c Initial revision
claus
parents:
diff changeset
  1965
48194c26a46c Initial revision
claus
parents:
diff changeset
  1966
    device := nil.
48194c26a46c Initial revision
claus
parents:
diff changeset
  1967
    cursorId := nil
48194c26a46c Initial revision
claus
parents:
diff changeset
  1968
! !
48194c26a46c Initial revision
claus
parents:
diff changeset
  1969
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1970
!Cursor methodsFor:'private accessing'!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1971
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1972
setDevice:aDevice id:anId
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1973
    "set the device and deviceId of the receiver"
160
claus
parents: 157
diff changeset
  1974
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1975
    device := aDevice.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1976
    cursorId := anId
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1977
!
48194c26a46c Initial revision
claus
parents:
diff changeset
  1978
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1979
setShape:aShapeSymbol
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1980
    "set the shape"
160
claus
parents: 157
diff changeset
  1981
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1982
    shape := aShapeSymbol.
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1983
!
48194c26a46c Initial revision
claus
parents:
diff changeset
  1984
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1985
setSourceForm:sForm maskForm:mForm hotX:hx hotY:hy
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1986
    "set the forms and hotspot"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1987
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1988
    sourceForm := sForm.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1989
    maskForm := mForm.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1990
    hotX := hx.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1991
    hotY := hy.
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1992
! !
157
claus
parents: 151
diff changeset
  1993
1140
e0e5da9b080b use Image instead of Form
Claus Gittinger <cg@exept.de>
parents: 974
diff changeset
  1994
!Cursor class methodsFor:'documentation'!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1995
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1996
version
1188
2a4d644e8828 care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents: 1181
diff changeset
  1997
    ^ '$Header: /cvs/stx/stx/libview/Cursor.st,v 1.43 1997-01-13 19:15:45 cg Exp $'
0
48194c26a46c Initial revision
claus
parents:
diff changeset
  1998
! !
577
13095d631a2a commentary
Claus Gittinger <cg@exept.de>
parents: 499
diff changeset
  1999
Cursor initialize!