author | Claus Gittinger <cg@exept.de> |
Tue, 21 May 2019 17:23:33 +0200 | |
changeset 6051 | d7240d502ea7 |
parent 4355 | 3ec5cc86b891 |
child 4770 | 6634b540fea2 |
permissions | -rw-r--r-- |
0 | 1 |
" |
3 | 2 |
COPYRIGHT (c) 1989 by Claus Gittinger |
0 | 3 |
All Rights Reserved |
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
3150 | 12 |
"{ Package: 'stx:libwidg2' }" |
13 |
||
0 | 14 |
Button subclass:#MotionButton |
1230 | 15 |
instanceVariableNames:'oldBorderWidth' |
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'Views-Obsolete' |
|
0 | 19 |
! |
20 |
||
86
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
21 |
!MotionButton class methodsFor:'documentation'! |
0 | 22 |
|
86
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
23 |
copyright |
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
24 |
" |
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
25 |
COPYRIGHT (c) 1989 by Claus Gittinger |
0 | 26 |
All Rights Reserved |
27 |
||
86
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
28 |
This software is furnished under a license and may be used |
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
29 |
only in accordance with the terms of that license and with the |
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
30 |
inclusion of the above copyright notice. This software may not |
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
31 |
be provided or otherwise made available to, or used by, any |
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
32 |
other person. No title to or ownership of the software is |
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
33 |
hereby transferred. |
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
34 |
" |
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
35 |
! |
0 | 36 |
|
86
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
37 |
documentation |
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
38 |
" |
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
39 |
this is obsolete |
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
40 |
|
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
41 |
a motionButton highlights itself whenever the cursor |
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
42 |
walks into it ... |
4355 | 43 |
... this is no longer needed, since every button now |
1230 | 44 |
supports this. |
86
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
45 |
" |
0 | 46 |
! ! |
47 |
||
48 |
!MotionButton methodsFor:'events'! |
|
49 |
||
50 |
pointerEnter:state x:x y:y |
|
51 |
oldBorderWidth := self borderWidth. |
|
52 |
self borderWidth:(oldBorderWidth * 2) |
|
53 |
! |
|
54 |
||
55 |
pointerLeave:state |
|
56 |
self borderWidth:oldBorderWidth |
|
57 |
! ! |
|
1230 | 58 |
|
59 |
!MotionButton methodsFor:'initialization'! |
|
60 |
||
61 |
initEvents |
|
62 |
super initEvents. |
|
63 |
self enableEnterLeaveEvents |
|
64 |
! ! |
|
65 |
||
66 |
!MotionButton class methodsFor:'documentation'! |
|
67 |
||
68 |
version |
|
4355 | 69 |
^ '$Header: /cvs/stx/stx/libwidg2/MotionButton.st,v 1.7 2013-08-31 09:10:43 cg Exp $' |
1230 | 70 |
! ! |
4355 | 71 |