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/