Board index » delphi » making a form under a form I am closing disappear
Gino Costa
![]() Delphi Developer |
Wed, 27 Oct 2004 12:51:29 GMT
making a form under a form I am closing disappear
Hello
I have Delphi 6. I have a full-screen form, that contains components like check boxes, buttons, radio buttons, etc. When the user clicks the Go button, another full-screen form opens up to display details of what was selected, from that second form the user then clicks the final Go button. The second form, then the first form closes, and the actions take place on the main form. these forms are both called modally, the second details form is called modally from within the first form (the one with the components). This all works great except that the first form (the one with the components) is momentaril;y visible when the second form closes, causing the buttons and stuff to be visible for a split second. The first form was called modally and called the second form modally, so the first form's 'Go' button's click event is something like: If secondForm.ShowModal = mrOk then Modalresult := mrOk; If you have a better way I'll change this. Anyway, what I wanted is the second form to close and the main screen to be visible without showing AT ALL the first form, even for a second. I was going to solve this by making all the first form's controls invisible from the second form before returning a Modalresult of mrOk. do you see what I mean? thanks, Gino -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- |