Main menu in a child form

Posted on 2006-05-29
Last Modified: 2010-04-05
Hi there

I have two forms, one is a fsMDIForm and the other is a fsMDIChild
On the fsMDIChild form I have a main menu which is ok in dsign mode, however when I run the application and open that form the main menu jumps to the other window (fsMDIForm main) and isn't displayed on the fsMDIChild...

is there a way to sort that out?

Question by:wildzero
    LVL 10

    Author Comment

    My work around is made a TToolBar with buttons and then have them set DropLists....
    Would of rather had the main menu....
    LVL 27

    Accepted Solution

    from delphi help about automerge-property of TMainMenu

    If the application is an MDI application (the FormStyle properties are set so the main form is a parent form and subsequent forms are child forms), menu merging occurs automatically without using the AutoMerge property.

    so this is just a normal bahaviour

    meikl ;-)
    LVL 10

    Author Comment

    So it can't be stopped?
    LVL 26

    Assisted Solution

    by:Russell Libby

    Nope.... a window with the WS_CHILD style bit cannot have a menu set for it.



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
    In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now