[squeak-dev] Morphic focus

Mark Volkmann mark at ociweb.com
Tue Oct 28 15:36:07 UTC 2008

On Oct 28, 2008, at 10:14 AM, Gary Chambers wrote:

> With Polymorph loaded, send #takeKeyboardFocus to the morph.
> Without do
>   ActiveHand newkeyboardFocus: yourMorph

Hmm ... I tried this and it didn't work. My code opens a window that  
displays two labels, two text fields and a button. When I click the  
title bar of the window, no morph inside it gets focus until I click a  
morph. I tried "ActiveHand newKeyboardFocus: myTextField" both before  
and after I open the window.

> The preference #mouseOverForKeyboardFocus should be off for this to  
> stick, of course ;-)

I don't have mouseClickForKeyboardFocus or mouseOverForKeyboardFocus  

> Regards, Gary.
> ----- Original Message ----- From: "Mark Volkmann" <mark at ociweb.com>
> To: "The general-purpose Squeak developers list" <squeak-dev at lists.squeakfoundation.org 
> >
> Sent: Tuesday, October 28, 2008 12:43 PM
> Subject: [squeak-dev] Morphic focus
> How can I make focus start in a given text field?
> I thought sending wantsKeyboardFocus to a TextFieldMorph would do  
> it, but that didn't work.

Mark Volkmann

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5706 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20081028/6b116d96/smime.bin

More information about the Squeak-dev mailing list