Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disappearing Menu!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01355475
Message ID:
01355515
Vues:
22
Something is fishy here. Why you're using Main_Menu and not using it anywhere else?

>Hey Gang!
>
>Today, a fellow programmer gave me this problem to solve.
>
>He has an older program that is being updatted. In it is an old Menu.
>
>From pos_strt.prg we have.
>
>BLAH, BLAH, BLAH....
>
>DO Mainpops WITH .F.
>READ EVENTS 
>
>DEACTIVATE MENU Main_Menu
>RELEASE MENU Main_Menu EXTENDED
>
>SET SYSMENU TO DEFAULT
>
>MORE BLAH, BLAH, BLAH....
>
>
>
>In the MainPops.prg we have...
>
>PROCEDURE MAINPOPS
>PARAMETER _EXITPOS
>
>CLEAR
>
>*main_menu = "Main_Menu"
>SET SYSMENU TO 
>main_menu = "_mSysMenu"
>
>DEFINE MENU &Main_Menu
>
>DEFINE PAD _Cash_Reg  OF &Main_Menu PROMPT "\<Cash Register"
>DEFINE PAD _Inventory OF &Main_Menu PROMPT "\<Inventory"    
>DEFINE PAD _Utilities OF &Main_Menu PROMPT "\<Utilities"    
>DEFINE PAD _Exit      OF &Main_Menu PROMPT "E\<xit"         
>
>
>BLAH, BLAH, BLAH.......
>
>ACTIVATE MENU &Main_Menu
>
>_EXITPOS = .F.
>
>RETURN
>
>*******************************************************************
>PROCEDURE CHECKSUSP 		&&REMOVE AFTER SEPT RELEASE
>=ALARM(2)					&&REMOVE AFTER SEPT RELEASE
>WAIT WINDOW "Option replaced by Maintenance / Customers" TIMEOUT 2
>
>
>
>The menu comes up fine.... but when you click outside the program, like on the TaskBar or somewhere on the desktop outside the program, the Menu disappears and is gone!
>
>Any ideas why???
>
>Thanks!
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform