Setting the form title only erases the title line using the length of the
new title. you can try to change it to enough spaces to cover the previous
title before posting the newest. I would be careful not to post more
characters than originally placed in the title screen. The title memory is
allocated only once (the first time you set the title or the title set in
constructor).
-----Original Message-----
From: Kevin Mckee <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Sunday, May 14, 2000 4:10 PM
Subject: FrmSetTitle Help...
>I set the title of my form to show the number of records in the database.
>The problem starts when I choose a category that has say, 13 records, then
I
>choose a category that has only 2 records. The title then shows as 23
>records instead of 2 records, not erasing/redrawing over the previous
title.
>The following code is in two places, MainFormInit and
>MainViewSelectCategory. Here is a snipit of the code...
>
>total = DmNumRecordsInCategory( hDB, CurrentCategory );
>if ( ConfirmShowRecords )
>{
> FrmDrawForm (frm );
> StrCopy( MenuTitle, "Records " );
> StrIToA( &MenuTitle[StrLen( MenuTitle )], total );
> FrmSetTitle( frm , MenuTitle );
>}
>else
>{
> StrCopy( MenuTitle, "4T NVNTORY" );
> FrmSetTitle( frm, MenuTitle );
> FrmDrawForm( frm );
>}
>
>Thanks in advance,
>Kevin Mckee
>
>
>--
>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/