For some odd reason after my timer in a form, the form will dissapear 
then reappear then disappear and I want it to disappear for good the first time.

               This is what I did. Please help me!

static void MainFormInit(FormPtr /*frmP*/)
{
FormPtr pForm = FrmGetActiveForm();
    pForm = FrmInitForm (SplashForm);
    FrmDrawForm (pForm);
    SysTaskDelay (100);
    WinEraseWindow();
    pForm=FrmInitForm(MainForm);
    if( pForm )
    {
    // Ini the Main Form
    //  pForm = FrmInitForm (MainForm);
        // initialize the barcode type and barcode data fields
        SetFieldText( MainNumberField, "No Barcode Data", 80, false );
        FrmDrawForm( pForm );
        
    }
//  WinEraseWindow();
}



            Then in my Main Form Event Handler I said,

                  case frmOpenEvent:
            frmP=FrmInitForm(MainForm);
            frmP = FrmGetActiveForm();
            MainFormInit( frmP);
            FrmDrawForm ( frmP);
            handled = true;
            break;
            

         Please help me! Thanks!

                                GOD Bless!!!

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