>>>>>Hi.
>>>>>I have a Gris with a few columns, and I want the default behaviour of some of the columns to be Tbastop = .f., so the user should not land in them.
>>>>>
>>>>>I notice there is not a Tabstop control for the column itselef, so I set the Tabstop of the Control in the column to .F., however, the user still lands in the column, and the TabStop propert seems to make no diffeence.
>>>>>
>>>>>Is there a way of 'Jumping' over a column ?
>>>>>
>>>>>Regards,
>>>>>Gerard
>>>>
>>>>Gerard,
>>>>Either set enabled = .f. for the column or return .f. from when event of its control. Both however wouldn't prevent you form focusing to it with mouse.
>>>>Cetin
>>>
>>>Setting WHEN to false WILL prevent focussing with the mouse.
>>
>>In which version?
>>Cetin
>
>In all versions. The cursor won't be positioned in the cell and selecting text won't be possible.
I didn't say it'd allow selecting text but it can get focus. ie:
PUBLIC oForm
oForm = CREATEOBJECT('myForm')
oForm.Show
DEFINE CLASS myForm as Form
datasession = 2
Height = 200
Width = 600
PROCEDURE load
USE (_samples+'data\customer')
endproc
ADD OBJECT myGrid as grid WITH height=200,width=600
procedure init
WITH this.myGrid.Columns(2)
.NewObject('text2','myTextBox')
.CurrentControl = 'text2'
.Sparse = .f.
.text2.visible = .t.
endwith
endproc
ENDDEFINE
DEFINE CLASS myTextBox as textbox
PROCEDURE when
RETURN .f.
ENDPROC
enddefine
Cetin