Bringing a window on top on mouse over
Edgar J. De Cleene
edgardec2001 at yahoo.com.ar
Wed Feb 7 12:37:32 UTC 2007
El 2/7/07 9:26 AM, "Cédrick Béler" <cbeler at enit.fr> escribió:
> Thanks Frank and Edgar...
> I'm looking around but that doesn't seem simple...
> I try to modify SystemWindow but this causes squeak to freeze :)
>
> What I like is to be able to bring any windows/morph in front when mouse
> over, but I think it won't be really quick anyway...
>
> I'll try with specific morphs (et leat the open menu I leave open).
>
> Thanks anyway
>
> Cédrick
Here I attach the asked solution.
But was better you follow the chain of senders and implementors to learn.
Edgar
PS: Quick prototyoe, the category of course is not RemoteExperiments , but
as I am in Argentina maybe is RemoteHelp :=)
-------------- next part --------------
'From SqueakLight3.7.1 of ''4 September 2004'' [latest update: #5985] on 7 February 2007 at 9:34:21 am'!
SystemWindow subclass: #MySystemWindow
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'RemoteExperiments'!
!MySystemWindow methodsFor: 'event handling' stamp: 'edc 2/7/2007 09:31'!
handlesMouseOver: evt
^true! !
!MySystemWindow methodsFor: 'event handling' stamp: 'edc 2/7/2007 09:33'!
mouseEnter: evt
self comeToFront! !
More information about the Squeak-dev
mailing list
|