You can try also this,
    frm = FrmInitForm(WaitForm);
    FrmSetActiveForm(frm);
    FrmDrawForm(frm);
    while (foo){
        do something....
    }
    FrmReturnToForm(0);

It works for me. Just remember to check the (save behind)
Hope it helps

Pablo Valle



"Dave Johnson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> In case it helps, I use the following two routines to do a similar
> thing (popup a "Please Wait" form during lengthy operations), and
> have had no trouble with them...
>
> void PopupWaitForm( void )
> {
> FormPtr waitFormP = FrmInitForm( WaitForm );
> RectangleType waitBounds;
> FrmGetFormBounds( waitFormP, &waitBounds );
> WinEraseRectangle( &waitBounds, 0 );
> FrmDrawForm( waitFormP );
> }
>
> void TakeDownWaitForm( void )
> {
> FormPtr waitFormP = FrmGetFormPtr( WaitForm );
> FrmEraseForm( waitFormP );
> FrmDeleteForm( waitFormP );
> FrmUpdateForm( FrmGetActiveFormID(), 0 );
> }
>
> I also only use this within a single routine: no event traffic while it's
up.
>
> Dave Johnson
>
>





-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to