Board index » delphi » How to hide MDIChild forms during runtime creation
Nick Barrett
![]() Delphi Developer |
Sat, 13 Mar 2004 08:38:01 GMT
|
Nick Barrett
![]() Delphi Developer |
Sat, 13 Mar 2004 08:38:01 GMT
How to hide MDIChild forms during runtime creation
Does any one know how to hide a MDIChild form during a runtime creation? I
have tried setting Visible to false, but it errors. What happens at the moment is that you can see the form being created then maximized and it look really ugly while all of this happens. Any thoughts? Cheers, |
Michael Hanse
![]() Delphi Developer |
Sat, 13 Mar 2004 09:14:18 GMT
Re:How to hide MDIChild forms during runtime creationI dont have this problem... how do you create your MDIChild? TMDIChild.Create(Application) ? Quote"Nick Barrett" <NBarr...@SentryCorp.com> wrote in message Quote> Does any one know how to hide a MDIChild form during a runtime creation? |
Nick Barret
![]() Delphi Developer |
Sat, 13 Mar 2004 09:50:30 GMT
Re:How to hide MDIChild forms during runtime creationI have managed to fix it. I found a very old post at google. A guy said he tried using LockWindowUpdate and it didn't work for him, but I tried it and it worked. (I had never heard of LockWindowUpdate before then) Here's how I do it now. LockWindowUpdate(MDIParentForm.Handle); I now have a new problem (As always...lol) Every time I open and close an Cheers, Quote"Michael Hansen" <Dyster_...@hotmail.com> wrote in message Quote> I dont have this problem... how do you create your MDIChild? |
Paul Nicholl
![]() Delphi Developer |
Sat, 13 Mar 2004 10:03:05 GMT
Re:How to hide MDIChild forms during runtime creationI would try and use the Free method of the form instead? -- Home Page: www.southcom.com.au/~phantom QuoteNick Barrett <NBarr...@SentryCorp.com> wrote in message Quote> I have managed to fix it. I found a very old post at google. A guy said |
Nick Barret
![]() Delphi Developer |
Sat, 13 Mar 2004 10:33:17 GMT
Re:How to hide MDIChild forms during runtime creationDelphi's help says "Any event handlers of the form should use Release instead of Free. Failing to do so could lead to an access violation." I have tried using Free but I get the access violations. This is how I currently do it. procedure TMDIChildForm.btnOKClick(Sender: TObject); Release is supposed to "Destroy the form and frees its associated memory" Cheers, PS: Is this getting OT for this newsgroup? Quote"Paul Nicholls" <paul_f_nicho...@hotmail.com> wrote in message Quote> I would try and use the Free method of the form instead? |
Johnn
![]() Delphi Developer |
Sat, 13 Mar 2004 17:30:46 GMT
Re:How to hide MDIChild forms during runtime creation"Nick Barrett" <NBarr...@SentryCorp.com> wrote in <3bafedb4$1_2@dnews>: Quote>Delphi's help says and on the form's onclose event set the action to caFree this does the trick for us. Regards |
Nick Barret
![]() Delphi Developer |
Sat, 13 Mar 2004 19:34:49 GMT
Re:How to hide MDIChild forms during runtime creationCheers for that. Seems to be better now. Cheers, Quote"Johnnie" <N...@Noware.non> wrote in message news:3bb04ec6$1_2@dnews... |
Paul Nicholl
![]() Delphi Developer |
Sun, 14 Mar 2004 06:54:06 GMT
Re:How to hide MDIChild forms during runtime creationQuote>Try to use close instead -- Home Page: www.southcom.com.au/~phantom |
1. Hiding A MDIChild Form At Creation Time?
2. dynamic creation of forms, form is hidden in some cases
3. Hiding component during runtime
5. can i hide a MDIChild form ?
6. Making child form invisible during creation
7. Processing during form creation?
8. Q: Scaling forms during runtime
9. creating forms during runtime
10. during design time fine, but during runtime propeties without effect