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:
00653346
Views:
24
>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

I guess, you can always add a shrotcut menu to your buttons with 'What's this?' item :)

BTW, check out the bottom of Re: An easy one for VFP gurus - how to create a class for he Thread #653357 Message #653360, it has some API functions controlling mouse behavior...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform