Yep ... it's a good day when I only find 1-2 bugs, er, "features" ...
Coincidently, I wasted a fair amount of time on this one today too.
The .When seems to execute everytime ... but the RETURN .F. is simply ignored when the mouse is clicked.
This seemed to be the "tidiest" solution (in the TextBox's .When):
IF MDOWN()
KEYBOARD "{TAB}" PLAIN
ENDIF
RETURN .F.
(2 steps forward, 1 step back).
>I'm trying to put code in all kinds of places to handle this on a grid; so far unsuccessfully. When a checkbox is checked and user goes to the adjacent column's textbox it should be disabled. All is well unless the user simply clicks on the textbox with the mouse. It remains enabled. I've tried the textbox When, GotFocus and other places. Why won't it disable if I have code in the When to handle it?