Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Activate popup on right click in a grid
Message
 
À
31/07/1998 12:00:09
Francois Liboiron
National Bank of Canada
Montréal, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00123022
Message ID:
00123435
Vues:
19
>Thank you, but the line
>ON SELECTION POPUP myPopup DO myprg WITH BAR()
>
>BAR( ) returns 0 if there is no active menu or if the user presses Esc to exit the menu. I dont want to change de sysmenu, is it possible
>to have just the popup? and take a action with the value of BAR().
>

Instead of calling a procedure, do conditional statements below activate popup directly.
ON SELECTION POPUP mypopup 
ACTIVATE POPUP mypopup

DO CASE
CASE BAR() = 0
     blah...
CASE BAR() = 1
     blan...
ENDCASE

RELEASE POPUP mypopup

>>Hi,
>> Use Shortcut instead of popup and call it from RIGHTCLICK() event of the grid's textbox. For Example
>>
>> DEFINE POPUP mypopup SHORTCUT RELATIVE FROM MROW(),MCOL()
>>
>> DEFINE BAR 1 OF myPopup PROMPT "One"
>> DEFINE BAR 2 OF myPopup PROMPT "Two"
>>
>> ON SELECTION POPUP myPopup DO myprg WITH BAR()
>> ACTIVATE POPUP mypopup
>> RELEASE POPUP myPopup
>>
>>Hope it helps
>>
>>Bye
>>Jayesh
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform