Hi Ben
---------
If (Mdown() And Mrow(Thisform.Name)>=0 And Mcol(Thisform.Name)>=0) Or Wontop(Thisform.Name)
Nodefault
Endif
Sorry, Ben but you haven't try your's code,
Wontop(Thisform.Name) on text.LostFocus is fixed at .T. because i haven't lost the form
The first part can to be simplified to:
If MDOWN() AND MWINDOW(Thisform.Name)
Nodefault
Endif
This not solve lostfocus with mouse because if on Valid i have a long time
( ex. SQL backend is slow for high locking contention on data ) and user have a finger express MDOWN() can return .F.
Fabio