[Q] moving morphs without the halo
Hernan Tylim
htylim at yahoo.com.ar
Mon Apr 7 13:49:05 UTC 2003
Hi Martin,
I am not sure I understood you correctly or if I can help you but...
Did you look into these methods:
#waitForClicksOrDrag:event: and #startDrag: ?
For example this is what I am doing in Jacaranda to move my shapes:
JacarandaShape>>mouseDown: anEvent
anEvent shiftPressed not & anEvent redButtonPressed
ifTrue: [anEvent hand waitForClicksOrDrag: self event: anEvent].
Later one of the following methods will be invoked with the shape as the
receiver:
#click:
#doubleClick:
#doubleClickTimeout:
#startDrag:
In Jacaranda I have the following #startDrag:
JacarandaShape>>startDrag: anEvent
anEvent hand grabMorph: self.
Regards,
Hernan
> -----Mensaje original-----
> De: squeak-dev-bounces at lists.squeakfoundation.org
> [mailto:squeak-dev-bounces at lists.squeakfoundation.org]En nombre de
> Martin Drautzburg
> Enviado el: Domingo, 06 de Abril de 2003 19:15
> Para: The general-purpose Squeak developers list
> Asunto: [Q] moving morphs without the halo
>
>
> I want to move a morph without picking it up. The halo can do this,
> but I want to drag the morph directly.
>
> I got lost in chess moves and many other "move" methods. Could someone
> help me here ?
>
More information about the Squeak-dev
mailing list
|