>The mousemove event could be the answer I was fishing for but how does it work but I still want a understanding of how to setup a API function in foxpro the monitor of the window message like I use to do in visual basic, Can this be done or not,
In regard to MouseMove:
When a user will try to click on button he/she will first fire Command.MouseMove event and here you can use Form.ActiveControl property to figure out what control still has focus (I understood this is what you wanted, sorry if not).
Edward Pikman
Independent Consultant