Hi!
I have a splash screen at the start of the app, which is display for 2 seconds.
It is realized by a form Bitmap (160x160).
In PilotMain I call:
FrmGotoForm(FrmLogoForm);
AppEventHandler:
static Boolean AppHandleEvent( EventPtr eventP)
{
if (eventP->eType == frmLoadEvent)
{
// Load the form resource.
formId = eventP->data.frmLoad.formID;
frmP = FrmInitForm(formId);
FrmSetActiveForm(frmP);
switch (formId)
{
case FrmLogoForm:
FrmSetEventHandler(frmP, LogoFormHandleEvent);
break;
...
FormEventHandler:
static Boolean LogoFormHandleEvent(EventPtr eventP)
{
Boolean handled = false;
FormPtr frmP;
Err error;
switch (eventP->eType)
{
case frmOpenEvent:
frmP = FrmGetActiveForm();
MainFormInit(frmP);
FrmDrawForm (frmP);
handled = true;
// wait 2 Seconds
error = SysTaskDelay(SysTicksPerSecond()*2);
// then goto Main Form
FrmGotoForm(SelectMessortForm);
break;
default:
break;
}
return handled;
}
The Problem is:
The Form and it's Bitmap is displayed under POSE, but not on my Palm. There
is a blank screen for 2 seconds and then the MainForm is displayed.
So, the question is: where to look for the problem?
Thanks in advance,
bexxx^hasiland
--
"Donuts - is there anything they can't do?"
Homer J. Simpson