"Eric Potter" <[EMAIL PROTECTED]> a écrit dans le message de news: 
[EMAIL PROTECTED]
> In my application, I create a new form with FrmNewForm, setting the modal 
> flage to true. I display it with FrmDoDialog. But when I run it on the T5, 
> the focus ring is not drawn. I though all Modal forms had the focus ring 
> on by default. Is this a bug/loop-hole in the OS?
>
> As a work around, I tried to turn the focus ring on automatically by 
> calling
>
> FrmSetNavState(FrmGetActiveForm(), kFrmNavStateFlagsObjectFocusMode);
>
> on winEnterEvent and that didn't work. I also called it on the first 
> nilEvent after winEnterEvent and that didn't work either.
>
> Is there a way to turn on the focus ring on dynamically created forms?
>
> Eric
>

If you want to set the focus to a specific control you need to use:
FrmGlueNavObjectTakeFocus(...)

That glue function works both for the old navigation system and the new one.

-- 
Regis St-Gelais
www.laubrass.com



-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to