Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for the MPX
Message
De
16/12/1997 14:59:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00065992
Message ID:
00066338
Vues:
41
>>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform