Spec: how to select contents of TextModel on focus

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Spec: how to select contents of TextModel on focus

Sean P. DeNigris
Administrator
As the user tabs through the text fields of my Spec dialog, I'd like for the text to be selected in the currently active field. How do I do this? I played with #readSelectionBlock:, which seems to be sent during initialization but not navigation, and #whenReadSelectionIsChanged:, the purpose of which I can't figure out.

Thanks,
Sean
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Spec: how to select contents of TextModel on focus

Benjamin Van Ryseghem (Pharo)
Can't you force the use of readSelectionBlock during the navigation ?

Ben

On Jan 21, 2013, at 6:29 PM, Sean P. DeNigris wrote:

> As the user tabs through the text fields of my Spec dialog, I'd like for the
> text to be selected in the currently active field. How do I do this? I
> played with #readSelectionBlock:, which seems to be sent during
> initialization but not navigation, and #whenReadSelectionIsChanged:, the
> purpose of which I can't figure out.
>
> Thanks,
> Sean
>
>
>
> --
> View this message in context: http://forum.world.st/Spec-how-to-select-contents-of-TextModel-on-focus-tp4664421.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>


Reply | Threaded
Open this post in threaded view
|

Re: Spec: how to select contents of TextModel on focus

Sean P. DeNigris
Administrator
Benjamin Van Ryseghem-2 wrote
Can't you force the use of readSelectionBlock during the navigation ?
I thought about this for a while and realized I don't know what that means :) Would you give a little more info? e.g. where to look...
Cheers,
Sean