I believe I found an even slicker solution to this problem.
Basically, POL::CModalForm is doing something so that the default focus ring is never
set. I can't for the life of me figure out what POL::CModalForm is doing wrong, but
this appears to work around it.
void CMyModalForm::FixFnavFocus()
{
// It doesn't do any harm to SetFocus() this on devices without fnav support,
// so we don't bother to check for it.
MemHandle h = DmGetResource ('fnav', GetFormID());
if (h)
{
MemPtr p = MemHandleLock(h);
if (p)
{
FrmNavHeaderTag* fntg = (FrmNavHeaderTag*)p;
SetFocus(fntg->initialObjectIDHint);
}
}
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/