"Mark Derricutt" <
[hidden email]> wrote in message
news:cjft95$
[hidden email]...
> Something simple I'm sure,
>
> I just added the following to my shell:
>
> SMSComposerShell>>onViewOpened
> "Set focus and do other view-initialization things."
> super onViewOpened.
> contentPresenter setFocus
>
> ...with the intention that when the view was shown, focus would be given
> to the contentPresenter, which is a multiline TextPresenter, but focus
> remains were it was.
>
> Something simple I'm sure...?
The framework sets the initial focus when the view is first "activated",
which happens later. The default implementation is to set focus to the first
control in the tab order (which equates to the first enabled view with a tab
stop in the z-order). If you want different behaviour override
#setInitialFocus in your Shell (presenter) subclass.
Regards
Blair