Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding the right control
Message
De
14/07/1998 17:42:06
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00116218
Message ID:
00117356
Vues:
25
Yeah you're right David. I considered your approach but didn't want to have to trap in all sorts of places. This way, all I have to do is trap it in my base form class and, if there is right click code in any acive control, it is now executed and multiple layers of trapping and relaying is unneccessary. Also, your first message did not include all the code you just sent. It just had the first part with the form code. I also looked at your idea of putting a flag in to do the form right click but figured it this way - First priority is heads down data entry without having to go for the mouse so priority is on data entry control functions such as right click. If they need a right click on the form then they are not doing data entry and can use the mouse. I know this probably won't apply all the time but it should hit over 90% of the time. Thanks for all your input.

---SNIP--
>Each of the textboxes in your grid needs to be derived from a textbox class with code to trap nKeyCode=93 and pass it on to the RightClick() like the form KeyPress above. Then you just have to code the specifics in the RightClick. You may not need the KEY_PRESS_MENU_ACTIVATION but that would let you detect a distinct RightClick on the form if it had it's own menu to popup.
>
***************************
Bruce Gilmour

"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform