Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-02

Only 6 TMainMenus in an application?

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paul van Helden

Hi All,

I have 7 forms, each with a main menu. They open modally on top of each other. The 7th form has the main menu "disabled". If I move this form to be the main form (first to be created) it works. Is this a Windows limitation?

Cheers,

Paul.

Reply by email

Paul van Helden
to Paul van Helden

Ok, seems I did something illegal:

Opening a new form in the OnClick event of a top-level TMainMenu item. The menus of child forms don't work until you return to the first form.

It would have been nice to have a BeforePopup or OnPopup (like TPopupMenu) so that you can create child items or execute an action if no child items.

Cheers,

Paul.

Paul van Helden wrote 16 lines
Hi All, I have 7 forms, each with a main menu. They open modally on top of each other. The 7th form has the main menu "disabled". If I move this form to be the main form (first to be created) it works. Is this a Windows limitation? Cheers, Paul. _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email