Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Design right-click popup menus on main App Screen
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00695835
Message ID:
00696074
Vues:
14
Sergey,

Thanks so much for that additional info. That cleared it up for me and I now I have a RightClick() method on my main screen that launches my shortcut menu called mnushort.mpr. However, there is one little question on that. (hope I can ask this within this thread.)

One of the choices on that shortcut menu is to run my main "Navigator" form. I launch it the same way on both the shortcut menu and my main menu, "DO FORM navigator." In the Load event of this form I have the following code to prevent two instances of the form from being created:
IF TYPE("Navigator") = "O" and !ISNULL(Navigator)
   Navigator.Show()
   RETURN .F.
ENDIF
The form is recognized as an "Object" when launched from the Main menu but not from my Shortcut menu. Why would that be?


>Put the provided code into screenmethods.prg and customize oScr.RightClick. Than add to your main program.
* For VFP6 & 7:
>_SCREEN.NewObject("oSH","ScreenHook","screenmethods.prg")
>
>* For VFP3 & 5:
>SET PROCEDURE TO screenmethods ADDITIVE
>_SCREEN.AddObject("oSH","ScreenHook")
Don't forget to commnet out all those WAIT commands in the ScreenHook class.
>
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform