I hid the title because that's what the Palm OS Reference recommends under
the write-up for FrmSetTitle. It states,
"This function redraws the title but does not erase the old one first. If
the new title is shorter than the old one, the end of the old title will
still be visible. To avoid this, you can hide the title using FrmHideObject,
then show it using FrmShowObject, after using FrmSetTitle."
The Palm OS Reference just wasn't clear about how to get the title index.
Thanks for the quick response.
Regards,
Steve
-----Original Message-----
From: Bob Ebert [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 19, 2000 12:36 PM
To: Palm Developer Forum
Cc: Palm Developer Forum
Subject: RE: Form Titles
At 3:41 PM +0100 19-04-00, McMicken, Steven wrote:
>The Palm OS Reference says to use FrmHideObject and FrmShowObject (in
>certain cases) in the description of FrmSetTitle. FrmHideObject and
>FrmShowObject require an object index. I use zero for the title's index,
>and it works (so far), but I haven't been able to find it documented. Is
>this correct, or should I be using a different approach?
You're hiding the title?
What a weird thing to do.
Today 0 will always be the index of the title... and as far as I know
there's no programmatic way to get the resource ID for the title. So
you're pretty much stuck with hardcoding 0.
--Bob
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html