Bringing a window on top on mouse over
Karl
karl.ramberg at comhem.se
Wed Feb 7 12:37:43 UTC 2007
Cédrick Béler wrote:
> 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 :)
Maybe using a subclass of SystemWindow to test thing out, because if
you break SystemWindow and a predebug window pop up you are screwed.
By the way, keyboard focus of systemWindows is hard to grok...
Karl
>
> 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
>
> Frank Urbach a écrit :
>> Hi Cedrick,
>>
>> With the silent help from Lukas :-) (Eventhandling in Mondrian) you
>> could try this:
>>
>> Subclass a Morph or SystemWindow or whatever you want. After this
>> implement following:
>>
>> #handleMouseOver: anEvent super handleMouseOver: anEvent.
>> anEvent hand newKeyboardFocus: self.
>> self mouseOver: anEvent
>>
>> and
>>
>> #mouseOver: anEvent self activate.
>> anEvent wasHandled: true.
>>
>> It works for me in a 3.9 image.
>>
>> HTH
>>
>> Cheers,
>> Frank
>> -------- Original Message --------
>> Subject: Bringing a window on top on mouse over (07-Feb-2007 11:48)
>> From: Cédrick Béler <cbeler at enit.fr>
>> To: frank.urbach at schmees.com
>>
>>
>>> Hi
>>>
>>> Do you know if there is a way to bring morph on top just by moving
>>> the mouse over...
>>>
>>> Thanks
>>>
>>> Cédrick
>>>
>>>
>>
>>
>>
>>
>>
>>
>
More information about the Squeak-dev
mailing list
|