Recent

Author Topic: Anchor docking DockMaster  (Read 816 times)

morind79

  • Newbie
  • Posts: 4
Anchor docking DockMaster
« on: February 21, 2023, 04:52:58 pm »
Hi All,

I am using the anchor docking like explained and it works as I expect, but not for only one thing.
I want to have a menu in the docked window.
I have created a for fForm where the menu is present.

Then I call this fForm with :

Code: Pascal  [Select][+][-]
  1. fForm := TfForm.Create(Self);
  2. DockMaster.MakeDockable(fForm, true, true);
  3.  

But I cannot see the menu :-(
What should I do ?

Denis

jamie

  • Hero Member
  • *****
  • Posts: 6131
Re: Anchor docking DockMaster
« Reply #1 on: February 21, 2023, 11:50:32 pm »
It's my guess you are losing the menu because only a parent window can have a menu like that in windows.
 
 You dock your form and now it is a child of that window..

 Normally this is called MDI style of forms and if you were to do that, you would see your menu get added to the main window you dropped into.
The only true wisdom is knowing you know nothing

morind79

  • Newbie
  • Posts: 4
Re: Anchor docking DockMaster
« Reply #2 on: February 22, 2023, 03:39:52 pm »
I have found a workaround : use a toobar on which I place the menu.
For the moment this is the only solution I found.

 

TinyPortal © 2005-2018