Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why Added Checkbox ReadOnly In Browse Window
Message
From
03/02/2005 11:26:28
 
 
To
03/02/2005 11:13:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
00983492
Message ID:
00983511
Views:
15
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
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform