Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent control from getting focus due to rightclick
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Prevent control from getting focus due to rightclick
Miscellaneous
Thread ID:
00653252
Message ID:
00653252
Views:
67
Hi,

does anybody know, how I could prevent a control (for example a commandbutton) from getting focus, when the user right clicks on it?

The problem is here, that the When event fires before any mouse event is fired and a NODEFAULT in the MouseDown is too late. So the only chance seems to be, to check in the When event if the right mouse button is pressed. But how can I find that out? Or does anyone see another alternative?

TIA,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Next
Reply
Map
View

Click here to load this message in the networking platform