Could FrmInitForm(cli) be updating something on the screen before you call
FrmSetActiveForm(cli) and DoDialog(cli)?
-----Original Message-----
From: Enrico Pavesi <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Tuesday, March 21, 2000 9:03 AM
Subject: Refresh problem calling Modal ?
>Can someone explain why this code leaves hole in the calling form ??
>
> case tblEnterEvent:
> frmP = FrmGetActiveForm();
> row = eventP->data.tblEnter.row;
> col = eventP->data.tblEnter.column;
> if(col > 0)
> { if(CaricaCli(TblGetRowID(eventP->data.tblEnter.pTable,row),&Rec))
> { cli=FrmInitForm(FrmCliDetailForm);
> FrmSetActiveForm(cli);
> SetFieldTextPtr(frmCliDetailCLIDESCField,Rec.CLINAME);
> SetFieldTextPtr(frmCliDetailCLICITYField,Rec.CLICITY);
> SetFieldTextPtr(frmCliDetailCLISTREETField,Rec.CLISTREET);
> FrmDoDialog(cli);
> FrmSetActiveForm(frmP);
> FrmDeleteForm(cli);
> FrmDrawForm(FrmGetActiveForm());
>
> // FrmUpdateForm(MainForm,frmRedrawUpdateCode);
> }
> }
> handled = true;
> break;
>
>--
>
>Pavesi Enrico
>Nexus Informatica S.r.l.
>Melegnano (Mi) ITALY
>[EMAIL PROTECTED]
>Sito WEB http://www.nexusinf.it/
>
>
>"God is Real - unless declared Integer"
>
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html