Only if you call ProcessThatUpdatesForm2WithProgressInfo; from your
modal screen.

What would be better is to make the modal screen modeless.   But I guess
the point of modal screens are that they are jumping out and requiring
to be updated before you return to Form2

hope this helps

Tony Goodrich

> -----Original Message-----
> From: Derricutt, Mark [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, December 21, 1999 3:10 AM
> To:   Multiple recipients of list delphi
> Subject:      [DUG]:  Modal stuff...
> 
> Is it possible to show a form as modal, but continue execution in the
> same
> program block without waiting for ModalResult to be set?
> 
> I want to do something like:
> 
> procedure TForm2.DoSomething;
> begin
>   ShowModal;
>   ProcessThatUpdatesForm2WithProgressInfo;
>   ModalResult := mrOk;
> end;
> 
> Normally I would just use show, but I don't want my app to accept
> focus
> until it's finnished, is there anyway to get a modal type state
> without
> using ShowModal?
> 
> Mark
> 
> -- 
> Mark Derricutt, PB Power NZ Ltd (http://www.pbpower.net)
> Now Playing... Lightmare - The Fool
> 
> ----------------------------------------------------------------------
> -----
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> 
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to