Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding the right control
Message
 
 
To
14/07/1998 17:42:06
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00116218
Message ID:
00117382
Views:
26
Bruce,

If you put the KeyPress method in your lowest level textbox subclass, it's automatically trapped everywhere. You never have to worry about it. It'll call the RightClick and if there is something to do (ie code in that method) it will execute otherwise nothing happens.

>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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform