Tore,
That was it!! I never thought about visible because I could see the checkbox and it's value in the browse window.
Thanks,
Gary.
>All object which are added programmatically, are not visible by default.
>
>>Hello Everyone,
>>
>>I am trying to expand my knowledge of using custom browse windows and can't figure out why when I replace a column with a checkbox, the checkbox changes to readonly when the browse window gets focus. When I left the RemoveObject out it didn't change the behavior either. The browse is against a table (record optimistic).
>>
>>Can anyone tell me whats going on and how to get the checkbox to remain updatable (readonly = .f.) Here is the code snipit I am testing with:
>>
>>Thanks,
>>Gary Pike.
>>
>>
>>CLEAR
>>SET STEP ON
>>BROWSE FIELDS cBatch_no, lseparate_check NAME CustomBrowse NOWAIT TITLE 'Selection'
>>CustomBrowse.ReadOnly = .f.
>>CustomBrowse.column2.header1.Caption="Include"
>>CustomBrowse.column2.ReadOnly = .F.
>>CustomBrowse.column2.Sparse = .f.
>>CustomBrowse.column2.RemoveObject('text1')
>>CustomBrowse.column2.AddObject('CHKBOX','CHECKBOX')
>>CustomBrowse.column2.CurrentControl='CHKBOX'
>>CustomBrowse.column2.cHKBOX.Caption=""
>>CustomBrowse.column2.cHKBOX.readonly = .f.
>>CustomBrowse.column2.Width = 50
>>CustomBrowse.column2.Enabled = .T.
>>CustomBrowse.Width = 161
>>CustomBrowse.Height = 300
>>