Hi Philip,

thanks ! I have tried using FrmCopyTitle instead of FrmSetTitle, however,
it still does not work it out (overlapping still exists).

After some more hours of struggling with this, I manage to get it work, but
I'm not too sure is there any side effects. The following code show how I
get that stuff done.

---------------------------------------------------------------------------
    static void UpdateTitle ( char *database_record)
{
    FormPtr frm;
    char *titlePtr;
    MemHandle titleH;

    titleH  = MemHandleNew( StrLen(database_record)+1) );
    titlePtr = MemHandleLock(titleH);

    frm = FrmGetActiveForm();

    FrmSetTitle(frm, titlePtr)
}
---------------------------------------------------------------------------

>From the above code, I find it is kind of dangerous of creating a new memory
handle and locking it whenever an update is required without removing the
previous one.
The user simply browse from page to page, so whenever a user increase to
the next page, the title changes. Do you see any memory problem will occured
if the user keep on flipping for say 100 pages ?

Thanks

Best Regards
Andy

Philip Sheard <[EMAIL PROTECTED]> wrote in message
news:69169@palm-dev-forum...
>
> > Anybody got any idea to dynamically change the title of a form
> > well ?
>
> yeah, FrmCopyTitle.
>
> > As I have a form which title will change according to the database
> > retrieve.
> >
> > I have no problem in doing that except when the "new title" is shorter
> than
> > the previous title, the trialing words can still be seen,
> >
> > For example,
> >
> > 1st title  : Andy Yeong
> > 2nd title : Joanneeong (it should be Joanne)
> >
> > Anybody got any idea to avoid that ?
>
> yeah, FrmCopyTitle.
>
>
>
>



-- 
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