[Etoys] Focus on a stringMorph embedded in a PastupMorph

Kazuhiro ABE abee at squeakland.jp
Wed Jan 16 12:42:49 EST 2008


Hello, Hilaire.

I think you need to set a handler variable of an MouseButtonEvent like
following:

anEvent := MouseButtonEvent new
	setType: #mouseDown
	position: aStringMorph bounds center
	which: 4
	buttons: 12
	hand: aStringMorph currentHand
	stamp: nil.
anEvent handler: aStringMorph owner.
aStringMorph launchMiniEditor: anEvent.

Regards,
Kazuhiro Abe

2008/1/17, Hilaire Fernandes <hilaire at ofset.org>:
> I have a pasteupmorph wtih a StringMorph into it.
> When I request (through an external command) edit with the
> launchMiniEditor, I immediately lose the the focus of the string
> morph. To get it working I first need to click in the background of
> the PasteUpMorph.
> I have tried various message for keyboard/mouse focus without success.
>
> Hilaire


More information about the Etoys mailing list