Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Right-click menu
Message
De
12/03/1998 20:27:17
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00083141
Message ID:
00084326
Vues:
43
>>~~'.'~~ Still Fail...
>>My code was:
>>DEFINE POPUP CONVERSION FROM CURROW1, CURCOL1 ;
>>	TO CURROW2, CURCOL2 MARGIN RELATIVE SHADOW ;
>>	COLOR SCHEME 3
>>ON SELECTION POPUP CONVERSION ;
>>	MESSAGEB("DEACTIVATE POPUP HERE!!")
>>
>>DEFINE BAR _MED_CUT OF CONVERSION PROMPT '°Å¤U(\T)' KEY CTRL+X, '^X'
>>DEFINE BAR _MED_COPY OF CONVERSION PROMPT '½Æ»s(\C)' KEY CTRL+C, '^C'
>>DEFINE BAR _MED_PASTE OF CONVERSION PROMPT '¶K¤W(\V)' KEY CTRL+V, '^V'
>>DEFINE BAR _MED_SP100 OF CONVERSION PROMPT '\-'
>>DEFINE BAR _MED_UNDO OF CONVERSION PROMPT 'ÁÙ­ì(\Z)' KEY CTRL+Z, '^Z'
>>DEFINE BAR _MED_REDO OF CONVERSION PROMPT '­«½Æ(\R)' KEY CTRL+R, '^R'
>>DEFINE BAR _MED_SP200 OF CONVERSION PROMPT '\-'
>>DEFINE BAR 7 OF CONVERSION PROMPT '¬]°£(\D)' KEY DEL, 'Del'
>>
>>ACTIVATE POPUP CONVERSION
>>
>>There is no messagebox prompt out after I select anyone of above.
>>2nd, I fail to use Delete(\D) Key Del??
>>How to add it??
>>
>>P.s. Sorry for some Chinese wording.
>
>Just to reafirm Ed's advice, you need a DEACTIVATE POPUP CONVERSION in your code. If you want to do some processing before deactivating, change your code to have ON SELECTION POPUP CONVERSION DO myprocessmethod
>
>.MyProcessMethod
>
>=MESSAGEB("DEACTIVATE POPUP HERE!!")
>DEACTIVATE POPUP CONVERSION
>
>HTH

Well, finally I found that:
If I make UNcomment the Key Del line, the popup menu do not
make really 'key Del'!!!!
But the Messagebox() and Deactivate statement can execute!!

So, I guess that the Key Ctrl+X, +C, +V, +Z function will
jump the ON SELECTION statement.
But Key Del statement is failed to Keyboard, however, work success for
ON SELECTION Popup...
Then, I would adjust the DEFINE BAR statements and
remove all 'KEY'!!
Then, use external procedure to KEYBOARD the action with
last command Deactivate POPUP!!

~_~" The POPUP MENU coding was copied from book but the book DO NOT
give the deactivate statement. Really Hate Taiwan CHinese VFP book...
2 months ago, I use the Select tablekey .. into cursor tmp and add it
in combox... of cos, make trouble for GO, SKIP as wrong Select()
and slow on starting and also problem when Go to some other record because
the combox do not change as I wish....
Actually Use Field is the Quickest one!!
I need self study a lot to wonder what's going wrong 2 months ago...
+_+"
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform