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 Application project

Status
Not open for further replies.

GuntherBE

Programmer
Aug 26, 2003
2
BE
In Builder you can start a new MDI project, that way you immediately get the whole MDI skeleton.
Now I have a problem with the menu they provide.
The menu-item "Close" for example is only available when there are no open MDI-child forms. How do they do this?
The Close menu-item is also linked to a "FileClose1"-action, but there's no code in it.. - How can it work?
This really sucks. Also notice that the Save As and Save menu-items don't have any code yet, but if I try to assign it some code, the menu-item stays available all the time, even if there are no MDI child forms open..
Is there any way I can manipulate this myself?

Thanx
 
I am not sure about correct name (no Builder around...) but you can always check ChildrenCount property (or something like that) of main, parent MDI form and do almost everything you want with that (and if you add a generic response to child close method you can have that menu-disabling facility)
 
Thought of that, but the child form can't access the main form's menu..
And one menu item can influence other menu-items
New -> Causes Close and Save to be enabled for example
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top