Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to activate menu in VFP9 1

Status
Not open for further replies.

Koen Piller

Programmer
Jun 30, 2005
841
NL
Hi,

I have given my horse the spurs and upgraded from VFP7 to VFP9SP1.
Now the basicly easy system to activate a self-made menu, generated with GENMENU seems to have changed in VFP9. In VFP7 you where supposed to make in the init of the mainform a statement like do myMainMenu with THIS, .T. and _screen=OFF in config.FPW to have only the myMainMenu.
In VFP9SP1 I get an error: no parameter statement. Obviously as I noted that the starting coding in myMainMenu is dramaticaly reduced in version 9. Indeed no parameters any more.
Can't find an explanation in Help how to proceed and would not like to turn back just for this reason. Was hoping somebody would give me a hint how to attach my menu with killing or at least not showing the VFP interface.
Awaiting your kind advice.
Jockey(2)
horse1.gif
 
Hi Dave,
I have followed your suggestion and tried all kinds of possiblities but I must admit there is an abnormality in my system and at this moment I dont seem to be able to solve.
When I generate my menu and open the myMenu.mpr I will not see any of the usual coding you would expect and what I used to see in prior versions (5,6 or 7 VFP) - for good understanding the comment coding you have posted also in thread 1254-1215174.
My MPR starts with SET SYSMENU TO SET SYSMENU AUTOMATIC so when I open my form there is this error no parameter statement When I now C&P the essential piece of starting code - which you could find in e.g. C:\Program Files\Microsoft Visual FoxPro 7\Samples\Tastrade\Menus.MPR made some adjustments to array contents e.s.o., my form runs w/o error how ever menu not showing this is coverred, when closing the form I see the menu. Form is topleveL2, windowtype 1 Modal, maximized and in the init: do myMainMenu.mpr with this, .t. .
Now obviously this is not the way it should be done I merely tried to see the effect. What one should get is the correct generated MPR. Have already reinstalled VFP just to be sure everything was still correct, no effect. Will now zip the whole thing and try it tom on another pc with an other VFP installed. It just seems GenMenu is considering myMainMenu as some kind of a shortcut menu.
Any advice is welcome.
Jockey(2)
horse1.gif
 
Have you also set the 'Top-level Form' checkbox in the menu designer?
On the main toolbar, select View->General Options
and check 'Top-level Form'.

Also, take a look in the help file for this topic:
How to: Create Menus and Submenus


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Hi there,
it seems that some way or the other the section to checkbox for TopLevelForm was hidden under other popups and only available at the moment you have opened the menu to generate. Seems logic.
Anyway will implent and report back when succesfull.
Thanks for prompt reply.
Jockey(2)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top