Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for the MPX
Message
From
16/12/1997 14:59:09
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00065992
Message ID:
00066338
Views:
42
>>>>I added my menus (MNX) to my Project under the Menu category, but when the application is run on my user's machine, it asks for the MPX file. Why? I shouldn't have to distribute this.
>>>>
>>>>Thanks
>>>>Elyse
>>>
>>>
>>>First -- Modify Menu MyMenu
>>>
>>>On the VFP menu bar click on Menu, then Generate. This will generate the menu code (.MPR). Then COMPILE MyMenu.MPR which will create the MyMenu.MPX which is what you distribute.
>>
>>Are you saying I have to distribute the .MPX files along with my .EXE?
>
>Right. MyMenu.mnx is a table, and MyMenu.mnt is the associated memo file. When you create a menu through the menu designer, you must generate the menu. You call the menu with a DO MyMenu.MPR or DO MyMenu.MPX (compiled version of .MPR).
>
>I usually have a .PRG that does some setup sork, then it calls the Menu with a DO command, followed immediately by a READ EVENTS command. I have an EXIT option on my menu bar that has a CLEAR EVENTS to return control back to my .PRG which cleans up and quits the application.

I'm afraid I don't follow your point, Mark.
I don't distribute menus. If their location is in the path, and they are included in the project, then they don't have to be included any more than a .scx file has to be included.
Elyse- I had trouble with this initially also, but got it worked out eventually.
One thing that through me for a loop... DO MENU will accept the .mpr filename in quotes or by itself. In quotes, it gave me the message you are getting. By itslelf, it worked. If this doesn't work, and you are sure that the file is in the path, play around with the calling syntax. You shouldn't have to distribute your menu files.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform