Board index » delphi » WindowMenu Property won't work...

WindowMenu Property won't work...

Greetings from the rainy west coast of Vancouver, Canada!

My MDI child forms' WindowMenu property doesn't work.  The menu appears on
the MainForm and the name of the Windows menu item is WindowsMenu.  That is
where I want the created forms to appear.  So, Delphi accepts only
WindowsMenu := MainForm.WindowsMenu and it doesn't work either in the
object inspector or if I hard code it into the ProcedureFormCreate.

Any guesses for a solution is gratefully appreciated privately at:
lexb...@ibm.net

Cheers!
Walter.

 

Re:WindowMenu Property won't work...


At the risk of not understanding what you are talking about -

In an MDI app, you only need to set the WindowMenu of the main form to the
TMenuItem to which you wish to have the list of MDI children appended.

HTH (as if...)

--
Mark Pritchard

Walter Johanson <lexb...@ibm.net> wrote in article
<01bba197$dc227540$4bb12...@IBM.IBM.NET>...

Quote
> Greetings from the rainy west coast of Vancouver, Canada!

> My MDI child forms' WindowMenu property doesn't work.  The menu appears
on
> the MainForm and the name of the Windows menu item is WindowsMenu.  That
is
> where I want the created forms to appear.  So, Delphi accepts only
> WindowsMenu := MainForm.WindowsMenu and it doesn't work either in the
> object inspector or if I hard code it into the ProcedureFormCreate.

> Any guesses for a solution is gratefully appreciated privately at:
> lexb...@ibm.net

> Cheers!
> Walter.

Re:WindowMenu Property won't work...


Silly me.  Indeed, my problem was: property WindowMenu is set on the
MainForm, not ChildForms.  All is now well.  Thanks to all who responded!

Cheers!
Walter

Re:WindowMenu Property won't work...


Re: WindowMenu Property won't work...

You have to had the mainform's unit to the childwin's one.

Then, set the ChildWin's WindowMenu property to MainForm.Window1
(or any menuitem where you'd want to see the childrens list to
appear).

Other Threads