Modifying MDIChild System Menu

Posted on 2004-11-12
Last Modified: 2010-04-05
Hello Delphi Gurus...

I would like to modify the System Menu of a MDIChild form. I have done this previously on a "Normal" form, and I can also do it on the MDI Parent form. I have tried using AppendMenu, InsertMenu, SetMenuItemInfo etc... but none of these work on the MDIChild form. I am using Delphi 7.0 PRO.

Thanks for your help.
Question by:CSXADMIN
    LVL 7

    Accepted Solution

    Here's what I do in the CREATE method of the MDI child form:

      { These don't seem to work when edit window is MAXIMIZED }
      { because, WMSYSCOMMAND doesn't get called! }
      AppendMenu(SM,MF_String,c_another,'Open Another');

    It works for me.

    Author Comment

    Thanks LRHGuy...

    That is what I had too.... The only problem was that after appending the menu, I was also calling BorderIcons := [biSystemMenu, biMinimize]; ( I wanted to prevent the user from Maximizing the forms also)... As it turns out... a call to BorderIcons := [biSystemMenu] most likelly initializes the system menu back to its original state...

    Thanks for you help...

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    745 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

    14 Experts available now in Live!

    Get 1:1 Help Now