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

>You can move focus to another object on the form.

You're right, I've just hoped someone comes up with a WIN API for checking the state of a mouse button or something else.

>I don't think, your original idea is achievable... How would you prevent user from clicking and right-clicking whatever he/she pleases? You can probably cover your button with transparent shape and pass click but not right-click...

Well, I think a transparent shape/container could also pass on a rightclick, but covering all my buttons with a shape would be overkill.

>Anyway, why you should prevent button from getting focus, if user right clicks on it?

Hmmm :) Call me fanatic <g> ... I'm always trying to achieve Windows compliant behaviour for my VFP apps, so the user, if he will ever notice that at all <g>, gets a more professional impression. Try to right click on a button, which hasn't got focus, anywhere in Windows. In most cases a shortcut menu or a "What's this" help will come up. Press Escape and have a look where the focus is. The same can be noticed when doing that with dropdown-comboboxes, checkboxes and option buttons. Well, I could also have this listed as a hobby in my curriculum vitae ;-)

Regards,
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform