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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to include menu in PRG

Status
Not open for further replies.

PeriyurParthi

IS-IT--Management
Jul 18, 2001
258
IN
hi

suppose if i have created a menu useing create menu command and compiled. the generated .mpx is also works well. but i dont know how to include the created menu in program, pls help me in detail and tell me how to work with menus, i need detailed solution for this.. pls help
cheers
parthi
 
If your are talking about MENU BAR inside your form...
======================================================
To make menu appear on a user form, the following shall be done.

1. Open the menu (modify menu), the menu gets opened with the wizard... then ...
Choose from the system menu... View...GeneralOptions... Select Top-Level Form... Click OK

2. Again from the system menu ... choose ...
Menu... Generate... Generate
This will generate the menu mpr file

3. Now open the main form.
Set in the properties,
ShowWindow = 2-As top level form

In the InitEvent of the form.. put the code
DO myMenu.MPR WITH THIS

4. Compile and run

Also you can create short-cut pop up menus.
==========================================
That is when you right click an object, a popup menu can be made to appear to help the user pick right choices. If this is what you want...

The Visual FoxPro catalog contains several shortcut menu classes in the Menus folder (if you want to use them.. in case). You can post again if you need help on this. ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
thanks a lot ramani,
i can able to run from my vfp,but i am not able to do it when i build it as EXE and also immly it is disappearing as soon as i run the EXE, pls kindly advise how to build an EXE from an existing Example.
regds
general
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top