Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generate menu command
Message
De
06/11/2009 18:34:56
 
 
À
05/11/2009 09:08:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01433294
Message ID:
01433642
Vues:
47
>>During compile time, we need to use 2 different menu generation programs (GenmenuX and the Ribbon one). In the ProjectBuildTools we use, we could dynamically change the _GENMENU system variable and set it to the Ribbon menu driver, but we can't find the command to Generate the menu by code, something like "GENERATE MENU MYRIBBONMENU.MNX".
>
>I use the following to compile a MNU file:
>
>
>lcFileName = "Your menu file with path"
>lcProjName = SYS(2015) + ".pjx"
>CREATE PROJECT (lcProjName) NOWAIT SAVE NOSHOW NOPROJECTHOOK
>_VFP.ActiveProject.Files.Add(lcFileName)
>USE (lcProjName) ALIAS gkkmnucompile AGAIN IN 0
>SELECT gkkmnucompile
>GOTO RECORD 2
>REPLACE gkkmnucompile.outfile WITH lcFileName + CHR(0)
>USE
>DO (_GENMENU) WITH lcProjName,2
>_VFP.ActiveProject.Close()
>DELETE FILE (lcProjName)
>lcProjName = FORCEEXT(lcProjName,"pjt")
>DELETE FILE (lcProjName)
>
Thanks for sharing this, Greg!
Gensoft Sàrl
Christian Carron
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform