Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent control from getting focus due to rightclick
Message
 
To
06/05/2002 18:19:50
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00653252
Message ID:
00654148
Views:
19
Hi Dragan,

>The other thing is inkey(), which may also be too late - it does catch the mouse clicks, but also eats them and has to be issued before you expect the click or key. Maybe chrsaw() function also has a mouse option, no it doesn't (just checked), but you can use mdown() - even though it's marked as obsolete in the help, it still works.

I already had checked all these funtions. None of them helped. MDOWN() only works for the left mouse button, chrsaw() doesn't work either ...

>Another thought: what if, in the .when, you had
>
>
this.oPrevObj=thisform.activecontrol
>
>and in the end of the click code,
>
>
this.oPrevObj.setfocus
>this.oprevobj=.null.   && just dereference it
That works perfectly and encapsulates the behaviour in the control!! Why didn't I find that out myself <g>?

Thanks a lot,
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