Menus conventionally run in _SCREEN, not specifically in a form, although that's also possible.
Assuming you have a main.prg, you normally run the menu before calling your main form.
DO mainmenu.mpr
DO FORM mainform NAME oMainForm LINKED
READ EVENTS
HTH
If you really want to go the distance with top-level forms you can also get a toolbar to run underneath the top-level form's menu.
The content of the menu/toolbar should be specific to the top-level form and will give the top-level form the look and feel of a mini-application attached to your main application.
What I would suggest is that you consider the top-level form as secondary to your other forms and make sure you have a menu and toolbar running in _SCREEN.
You can also consider _SCREEN to be a top-level form which contains child forms.
If you add a .Resize() and a .Moved() method to _SCREEN, then you can resize _SCREEN by resizing a child form of _SCREEN.
Alternatively, you can resize a child form(s) of _SCREEN by resizing _SCREEN.
The .Moved() method can save _SCREEN's coordinates for next time the application is run.
Thank you very much for your reply. I tried it already yesterday and it works. Before I posted a question I'd browsed already the FAQ's but I never found an answer.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.