0
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1989/90/91 by Claus Gittinger
|
|
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 |
"
|
|
12 |
|
|
13 |
Button subclass:#MotionButton
|
|
14 |
instanceVariableNames:'oldBorderWidth'
|
|
15 |
classVariableNames:''
|
|
16 |
poolDictionaries:''
|
|
17 |
category:'Views-Interactors'
|
|
18 |
!
|
|
19 |
|
|
20 |
MotionButton comment:'
|
|
21 |
|
|
22 |
COPYRIGHT (c) 1989/90/91 by Claus Gittinger
|
|
23 |
All Rights Reserved
|
|
24 |
|
|
25 |
a motionButton highlights itself whenever the cursor
|
|
26 |
walks into it ...
|
|
27 |
|
|
28 |
@(#)MtnButt.st 3.1 92/08/23
|
|
29 |
written spring/summer 89 by claus
|
|
30 |
'!
|
|
31 |
|
|
32 |
!MotionButton methodsFor:'initialization'!
|
|
33 |
|
|
34 |
initEvents
|
|
35 |
super initEvents.
|
|
36 |
self enableEnterLeaveEvents
|
|
37 |
! !
|
|
38 |
|
|
39 |
!MotionButton methodsFor:'events'!
|
|
40 |
|
|
41 |
pointerEnter:state x:x y:y
|
|
42 |
oldBorderWidth := self borderWidth.
|
|
43 |
self borderWidth:(oldBorderWidth * 2)
|
|
44 |
!
|
|
45 |
|
|
46 |
pointerLeave:state
|
|
47 |
self borderWidth:oldBorderWidth
|
|
48 |
! !
|