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