Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDI Child window problem

Status
Not open for further replies.

frankii

Programmer
Dec 5, 2010
1
PL
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top