> Yes, the OS assumes that when it's drawing a 'plain' form, the screen is
> already erased. That's because in every other circumstance, it is!
i have noticed that in os 3.5, on the FIRST run of an application,
when you change forms it does not clear the form and the new form
is layed over the old.
i purposely do not save the bits, as it takes memory and time. :)
it was not a problem on pre os 3.5, but i had to write a routine
to fix this.
---
/**
* Draw a form on the device.
*
* @param formP a pointer to the form resource.
*/
void
DeviceDrawForm(FormType *formP)
{
DeviceGlobals *globals;
// get a globals reference
FtrGet(appCreator, ftrDeviceGlobals, (UInt32 *)&globals);
// palmos 3.5: we should clear VRAM buffers, "first run" bug
if (DeviceSupportsVersion(romVersion3_5)) {
WinScreenLock(winLockErase); WinScreenUnlock();
}
FrmDrawForm(formP);
}
---
that is *one* small feature of os 3.5 :P i have a list of many
more :)) this new page flipping technique is used in more places
than one would expect :P
cheers.
az.
--
Aaron Ardiri
Java Certified Programmer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 656 1143 A/H: +46 8 668 78 72
if you enjoy it, then it aint work :) - rule #106 of life
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html