Ben Combee wrote:
Anyone have any ideas? I could sure use them about now...
Can you add a fnav resource for this dialog that has the object
interaction mode turned off? That's likely to work correctly, as the
flag will be turned off at the right time during form creation.
First, I used pilrc to create a 'fnav' resource, and that seems
to have done the trick. That solves the immediate problem, for
which I am grateful.
But second, as far as I can tell, the documentation does not give
a hint anywhere that there is such a thing as "the right time".
Obviously, there are right and wrong times, but it requires
guessing and experimentation to know what they are. So if anyone
maintaining the documentation is reading this, it might be nice
to explain this in the FrmSetNavState() function documentation.
And third, it is beginning to appear to me that there is no such
thing as the right time to call FrmSetNavState() when using
FrmDoDialog() to open a form. I tried right after FrmInitForm()[1],
which seems like the earliest moment possible (since before that,
you don't have a FormPtr to pass to FrmSetNavState()), and that
doesn't seem early enough.
Ton van Overbeek mentioned doing FrmSetNavState() in response to
frmLoadEvent, but as I understand it, FrmDoDialog() never sends
that event. However, FrmPopupForm() does, so I am wondering if
perhaps Ton is doing FrmPopupForm() instead of FrmDoDialog().
So, I wonder, was I doing something wrong, or is it true that
FrmDoDialog() and FrmSetNavState() can't be used together?
Is there anyone out there who is successfully using FrmDoDialog()
together with FrmSetNavState()? And if not, is this a bug (or
an undocumented limitation)? It doesn't matter much to me
personally since I've found another solution, but if it is a bug,
it would be nice to establish that so that others don't have the
same problem.
- Logan
[1] Well actually, I have an intervening FrmSetEventHandler(),
but I can't see how that would change anything related to
this. And if it does, that's *really* counter-intuitive.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/