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.
That works perfectly and encapsulates the behaviour in the control!! Why didn't I find that out myself <g>?
Thanks a lot,
Armin