fsMDIForm and fsNormal form

Posted on 2009-04-29
Last Modified: 2013-11-23
I have an app which is an fsMDIForm and several fsMDIChild forms.  I would like to have a floating toolbar window.  I made this window a fsSizeToolWin and called it with Show.  Works great, however, it always stays on top of the MDI window.  Is there a way to change this?

Question by:alexiat
    LVL 36

    Expert Comment

    by:Geert Gruwez
    Delphi does this by using a right click menu to change options like the StayOnTop and Docking
    Is this what you mean ?

    Author Comment

    Yes.  The main window is fsMDIForm and the tool window is fsNormal.  Neither is set to StayOnTop; however, the "normal" tool window always stays on top of the MDI even though it is not set as such.
    LVL 36

    Accepted Solution

    you'll have to dock your window into the MDI.
    to do this you must create all your components on a panel inside the toolwindow.
    to dock you need to set the parent of the panel in the tool window to the MDI window.

    If you don't want docking you could use a shortcut key to toggle visibility of the tool window ...

    ToolWindow.Visible := not ToolWindow.Visible;

    or use BringToFront / SendToBack

    Author Closing Comment

    Glad I asked.  Thanks.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    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…
    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…

    761 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

    8 Experts available now in Live!

    Get 1:1 Help Now