Board index » delphi » Need a special SHOW method
Diego Zanella
![]() Delphi Developer |
Wed, 03 Jan 2001 03:00:00 GMT
Need a special SHOW method
Hi everybody.
I have a problem: I need to make an application which uses many forms, and it's necessary to create, show and then destroy them when they are no longer needed. Well, this process would be simple if I could use the Create->ShowModal->Destroy sequence, but I can't use the ShowModal function. I need to make this sequence using the standard SHOW method. This is my problem: if I write a Create->Show->Destroy sequence, the Form is created and destroyed before I can see it. It doesn't wait, it's destroyed immediately. However, I can't associate the form destruction to a button (like exit), because a form can't be destroyed by its owned components. Does someone know how can I implement a "delayed" Destroy method, which Thanx to everybody. -- |