>Someone must have seen this:
>
>I have created a grid that has several columns. Some columns are designed to be editable and several are designed to be read-only (like the columns you would freeze on the left side of a spreadsheet). I have set the tabstop for the textbox in the readonly columns to be .F., plus readonly=.T. and enabled=.F. and it does not let me TAB into them (this is the good news). However, if I mouse click into these textboxes, it highlights them (in off-color) and appears as if the cell has the focus (they are still read-only), even though the GOTFOCUS of the textbox for the cell does not fire (so it really doesn't have the focus).
>
>I don't want the users to be able to get into my read-only columns with tabs or the mouse! Can anyone shed some light on how to prevent these text boxes getting this "ghost-focus" - it would be best if the click had no affect, and focus remained on the previously highlighted valid editing cell?
Chris, keyboard a TAB in the WHEN method. Whether the user enters the field with TAB or MOUSE, he'll be moved to the next field. If the click on the column, hold down the mouse and drag, they CAN highlight the field, but only until they release the mouse key. Then - on to the next column.
WHEN Method
keyboard '{tab}' CLEAR
return .t.
HTH
Barbara