Subject:
|
Re: Borland/delphi question
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Fri, 1 Apr 2005 23:44:54 GMT
|
Viewed:
|
2453 times
|
| |
| |
In lugnet.cad.dev, Ross Crawford wrote:
> In lugnet.cad.dev, Kevin L. Clague wrote:
> > Well, once again I've hit my limit....
> >
> > I use a custom form for LPub's main form. I also use a simple custom form for
> > the Cancel window that contains two buttons.
> >
> > When LPub is processing something that takes a long time, it does
> > CanceForm->Show(). When LPub finishes procesing it does a CancelForm->Close().
> >
> > This works fine as long as the main form is not minimized. I've tried things
> > like waiting until the main form is active before issuing Close(). No joy. I
> > also tried having the CancelForm->Close(), when the CancelForm activates, and
> > the main form is done processing. No joy.
>
> Have you tried doing a mainform->restore() (or whatever the Delphi version is)
> before closing the child? It is likely the user won't mind the window
> re-appearing when some long processing is finished. If you're worried about
> that, you could possibly do
>
> mainform->restore()
> cancelform->close()
> mainform->minimize()
This one did it. Thanks for the help.
Kevin
>
> ROSCO
|
|
Message is in Reply To:
| | Re: Borland/delphi question
|
| (...) Have you tried doing a mainform->restore() (or whatever the Delphi version is) before closing the child? It is likely the user won't mind the window re-appearing when some long processing is finished. If you're worried about that, you could (...) (20 years ago, 1-Apr-05, to lugnet.cad.dev)
|
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|