Hi Tom! I do not think there is an official (and therefore compatible) way
of doing it, although one may find workarounds if they peek in the PalmOS
source.

However, I would strongly suggest that you do support the internal program
state instead of relying on what's the form underneath. After all, the UI is
just a reflection of the program logic and you should know at what state you
are anyway.

That's the logic we've been sticking to and it seems to work well for us.

- bobby

-----Original Message-----
I have a modal form that I display via FrmPopupForm from two different
underlying forms. I want the popped-up form to either show or hide a
specific button, based on which of the two forms is beneath it. To do that,
I need to know the form ID of the underlying form, so that I can do
something like this:

if (underlying form ID == form1)
   FrmShowObject(frm, thebuttonindex);
else
   FrmHideObject(frm, thebuttonindex);

Is there a way to tell which form is beneath it, other than by using a
global variable? I'm trying to avoid having to do this:

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

Reply via email to