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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot get MDI working if not in main form..

Status
Not open for further replies.

jdredd87

Technical User
Jan 5, 2005
2
US
application im writing has many forms...

I can write a simple program that has the mdi parent window, and create mdi child windows inside of it, tile, cascade them, do things inside each child window, whatever.. works fine... but there is only 2 forms.. form1, form2..

but what im writing... the form i want to be a mdiparent form i guess is like form10 and is set to fsMDIForm and the 11th form is the mdichild i want.. well.. form10 loads up fine.. but once i try to create a child inside of it i get this error "cannot create form. no mdi forms are currently active"

If i set my form1 to fsmdiform, then it works fine.. only problem is i have things going on in there and don't want it there anyways...

any ideas?
 
From what I understand of your description you want to have a child in a form thats a child of a form.

I dont think this can be done.

Aaron Taylor
John Mutch Electronics
 
It can't be done in the way that you have described. However, I've simulated this sort of thing by using either panels - setting the Visible property on them and .BringToFront or .SendToBack - or tabs in a TPageControl - set TabVisible to False so the tabs don't show but you can navigate them in your code.

-Dell
 
ya, i have bunch of forms that are fsNormal... but one of them i want as fsMdiform... but not form1...
 
The MDI form has to be the main form of the application. A childform can be any form you like but the MDI parent has to be the main form. The only thing you can do is "fudge" your way around it by simulating the behaviour of the MDI forms using other components, i.e. Panels etc.

[blue]"How about the power to kill a yak? From 200 yards away, with mind bullets!!!" [/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top