Hi!
You can use MROW() and MCOL() functions to get the current mouse pointer, than using ObjToClient function check if mouse is over that button. When button pressed by keyboard, focus is already out of that control. Well, if button pressed by shortcut key - here might be an additional problem, you require than to catch that key by ON KEY LABEL command (Alt+* is not catched by the KeyPress event).
HTH.
>Hi everyone
>
>I have a problem whit validation.
>
>I'm in my LostFocus validaton procedure from a class and i want to find a way to bypass the validation in certain case
>
>ex:
>LostFocus :
>
>IF !( X button pressed )
> DODEFAULT()
>ENDIF
>
>
>
>In other word i want to know if i there is a way to know if a certain button is pressed
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.