Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Eric den Doop
  Where is Eric den Doop?
 Houten
 Netherlands
 Eric den Doop
 To: Bob Gatto
  Where is Bob Gatto?
 Hawthorne
 New Jersey - United States
 Bob Gatto
 Tags
Subject: RE: cannot get a menu to appear
Thread ID: 154948 Message ID: 154960 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Menus
Date: Thursday, December 20, 2007 8:03:34 PM         
   


> >
> >
> > Don't fire a menu in a form activate. Fire it in the code before the form call.
> >
> > Don Higgins
> >
> >
> >
> >
> >
>
> I tried this but it doesn't seem to work. In the start-up program I tried:
>
DO mnumain.mpr
> DO FORM frmmain
> READ EVENT

> and that didn't work. I also tried
>
DO FORM frmmain
> DO mnumain.mpr
> READ EVENT

> and that didn't work. Anymore suggestions?
>
>
> Bob Gatto

You should create a top level menu and run it from within the form.init. In the menu designer, go to View | General Options and turn on the Top-Level Form option.

* untested... don't remember the exact parameters but take a look at the MPR file for more info
DO yourmenu.mpr WITH thisform


--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts

ENTIRE THREAD

cannot get a menu to appear Posted by Bob Gatto @ 12/20/2007 6:53:55 PM
RE: cannot get a menu to appear Posted by Don Higgins @ 12/20/2007 7:00:16 PM
RE: cannot get a menu to appear Posted by Bob Gatto @ 12/20/2007 7:15:26 PM
RE: cannot get a menu to appear Posted by Eric den Doop @ 12/20/2007 8:03:34 PM
RE: cannot get a menu to appear Posted by Bob Gatto @ 12/20/2007 8:20:07 PM
RE: cannot get a menu to appear Posted by Eric den Doop @ 12/20/2007 8:22:26 PM
RE: cannot get a menu to appear Posted by Ken Murphy @ 12/20/2007 8:33:52 PM