Hi:
I may be wrong but it seems to me that very few of the non-trivial focus
navigation questions get settled on this Forum. My guess is that the majority
of developers think that focus navigation is just a nuisance. This is just a
guess and I may be wrong. I am definitely struggling with the subtle issues
that arise. Here is one about focus navigation and ctlEnterEvent.
I have a modal form in an OS Extension where I do a
FrmSetNavState (frmP, kFrmNavStateFlagsInteractionMode);
FrmSetFocus (frmP, ...);
job right after FrmDrawForm(). Then I start to get events. Then I have this
segment.
case ctlEnterEvent:
{
FrmNavStateFlagsType stateFlagsT;
Err error = FrmGetNavState (frmP, &stateFlagsT);
}
break;
Well, we have error == errNone and stateFlagsT == 0. According to
http://www.palmos.com/dev/support/docs/palmos/PalmOSReference/Form.html#1131325
this means that we have "navigation mode" and "application focus mode" at the
same time. Does this make sense at all? Sounds like a bug to me.
Now I need to do another
FrmSetNavState (frmP, kFrmNavStateFlagsInteractionMode);
FrmSetFocus (frmP, ...);
job to get things back to normal.
Please note that ctlEnterEvent is not accompanied by any other event which
one would expect such as frmObjectFocusTakeEvent or frmObjectFocusLostEvent.
Just a single ctlEnterEvent [my pen is still down so we are not yet at the
ctlExitEvent or ctlSelectEvent stage].
Any comments?
/PaulN
P.S. See http://news.palmos.com/read/messages?id=179406#179406 for a somewhat
similar issue.
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/