Link to home
Start Free TrialLog in
Avatar of Member_2_99151
Member_2_99151

asked on

Multiple Main Menus in MDI Application

Hi,

It is possible to have a separate menu in a Child Window within an MDI application?

If you use the "MainMenu" component, it is not. Are there any components that allow this to happen???

Thanks,

James
ASKER CERTIFIED SOLUTION
Avatar of Ferruccio Accalai
Ferruccio Accalai
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_99151
Member_2_99151

ASKER

Thanks for the suggestion...
The GroupIndex looks pretty useful, but it is not quite what I am after.

I actually need a menu at the top of the child form as well as one for the parent.
I have looked at using other components, but none appear to dock at the top leaving the remainder of the form as the client area...

Any ideas?
Have you tried what I've suggested?  It does exactly this!
Look at the screenshots attached
design.jpg
designmenu.jpg
runtime.jpg
Hi,

I did try what you suggested but the menu still appeared on the MDI Parent. When one or more children were open, both sets of menus are merged into the main window.

The images you attached are exactly what I am after, so I am doing something wrong!

Are you able to attach the sample for the above for me to compare mine against?

Thanks
Of Course. It's a simple default Delphi MDI Application.
Wait a moment, I have to recreate it ;)
Thanks...

In the sample you have, it does display the menus in the Child ToolBar, but the 'File' menu still merges into the main window.

Is it possible to stop this from happenning?
Actually, if you tell the parent window that there is no menu, but add a toolbar to it linked to MainMenu1 it works fine :-)
Thanks for the help :-)