Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Ken Murphy
 To: Ron Haggin
  Where is Ron Haggin?
 Utah - United States
 Ron Haggin
Subject: RE: Menu on Form
Thread ID: 112488 Message ID: 112562 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Thursday, November 09, 2006 5:52:07 PM         

> Mike - Thanks for your response. I opened the menu and looked at the General Options, and Top-Level Form was checked. I deleted the file called Main.MPR and regenerated the menu. Unfortunatly I observed the same behavior.
> > > I have a form that is a 'Top level' form. In the init method I have placed the following code:
> > >
> > > DO Main.Mpr WITH this, .T.
> > >
> > > This menu exists and has been generated. When I run the form the menu does not appear.
> > > Has anybody experienced this behavior before?

> >
> > Open / Modify your menu again, then from the VFP Menu select:
> > * View
> > * General Options
> > * Then Tick the Top-Level Form
> > * Generate your menu again then try to run your Form


Lets just review to make sure you have all of the things you need in order. Your form's .ShowWindow needs to be set to 2. In your menu designer, you need to go to the View->General Options and you need to make sure that the procedure contains:
lparameters oChildMaint && or what ever form
You need to check the "Top Level Form" box and you need to regenerate your menu. In your form's .Init() you need to call the menu with
DO MENU [Path2\MyMenu.Mpr] WITH This, .t.

If you have all of these things in place, you should be good to go.

You shall know the truth - and the truth shall set you free. (John 8:33)


Menu on Form Posted by Ron Haggin @ 11/9/2006 12:44:03 AM
RE: Menu on Form Posted by mike castillo @ 11/9/2006 1:18:23 AM
RE: Menu on Form Posted by Ron Haggin @ 11/9/2006 4:59:24 PM
RE: Menu on Form Posted by Ken Murphy @ 11/9/2006 5:52:07 PM