Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 658
  • Last Modified:

fsMDIForm and fsNormal form

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?

Thanks.
0
alexiat
Asked:
alexiat
  • 2
  • 2
1 Solution
 
Geert GruwezOracle dbaCommented:
Delphi does this by using a right click menu to change options like the StayOnTop and Docking
Is this what you mean ?
0
 
alexiatAuthor Commented:
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.
0
 
Geert GruwezOracle dbaCommented:
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
0
 
alexiatAuthor Commented:
Glad I asked.  Thanks.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now