thread102-874277
I read it above post, about MDI Child window problem. There is a link that expired. Is anyone can help me in explain how to use ShowModal() in borland when I'm using child form that can't turn visible to false? How to use ShowModal in this case?
This drove me crazy also, I got around all the problems by:
1) Do not remove the form from the Autocreate list.
2) Change the form properties
visible to false
formstyle to fsNormal
3) to execute your form
if FormName.execute then
do something
4) in your modal form, code your ok button like
Result := (showmodal = mrOK);
I'm sure there is the correct way to do this in an MDI, but I could not find it anywhere. This seems to work for me
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.