HI Steve,
    Try using the Function 

    void FrmCopyTitle (FormType *formP, const Char *newTitle) 

Note:
The size of the new title must not exceed the title size defined in the
resource. When defining the title in the resource, specify an initial size
at least as big as any of the strings to be assigned dynamically. 


Thanks 
Manikumar K

Developers' Nation DTS Engineer
www.devnation.net
Developers' Nation is the fastest, most reliable and affordable way to
resolve your technical issues.




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 9:34 PM
To: Palm Developer Forum
Subject: Form Titles



I want to change the title of a form at runtime, and I found an example of
this
in the Memo application. I followed their example (dealing with the tricky
handling of the oldtitle, but I run into problems. 

The form title is defined in the resource, so I can't release the memory
from
the old title (produces runtime error). But if I don't release it, I get an
error after the function returns. 

I also tried leaving the title blank when creating the resource, but then
the
title is never drawn when I set it at runtime. 

What's the correct way to handle this?

Steve Cochran

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

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

Reply via email to