Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Bob Gatto
  Where is Bob Gatto?
 Hawthorne
 New Jersey - United States
 Bob Gatto
 To: Don Higgins
  Where is Don Higgins?
 Peoria
 Illinois - United States
 Don Higgins
 Tags
Subject: RE: cannot get a menu to appear
Thread ID: 154948 Message ID: 154958 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Menus
Date: Thursday, December 20, 2007 7:15:26 PM         
   


> > Hello One And All,
> >
> > I cannot get a menu bar to display on my screen. I created the screen using
> >
CREATE MENU mnumain

> > I have a config.fpw file that has SCREEN=OFF and the screen I want it on has the ShowWindow property set to 2 - As Top-Level Form. In the activate event of this screen, I have the command
DO mnumain.mpr
When I compile the program into an EXE and run it, everything works correctly except for the menu showing. I get no errors when I run the program.
> >
> > What could I be doing wrong?
> >
> > Thanks for the help,
> >
> > Bob Gatto
>
>
> 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

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