Thanks, makes sense (somewhat)
>Hi!
>
>Grid works with controls in columns personally without using properties of control in most cases. The properties of control inside of the column has effect only when control is focused for editing. Also, when grid draws self, it alway force drawing of the control no matter what its state is. Becuse control with Visible =.F. could not b focused, any attempt to click on it will cause nothing. In other words, you just see the image of the control drawn by grid control, but not the control itself.
>
>>That is true. But why ist it visible without the visible=.t. statement?
>>
>>Peter
>>
>>>Hi!
>>>
>>>.Column1.addObject("Lcheck", "Checkbox")
>>>
.Column1.Lcheck.Visible = .T.>>>
>>>Controls added in run-time are always added with property Visible = .F.
>>>
>>>>Hi, Folks!
>>>>
>>>>I have a silly problem dealing with grid and checkboxes:
>>>>- I have a data source in any open work area.
>>>>- I create a grid using ColumnCount=-1 and bound them to the datasource.
>>>>- Some VFP automatics works very well (calculating column widths etc.)
>>>>- Now the hack: I try to change the first column from textbox to checkbox!
>>>>- That works fine - but the checkbox is always readonly!
>>>>- I tried a lot of stuff:
>>>> - dealing with BoundTo
>>>> - setting ReadOnly=.T. programmatically
>>>> - explicit setting of controlsource of the checkbox
>>>>
>>>>But whatever I do, the ... checkbox is read only at all!
>>>>
><<<<
.Signature
{
margin-top: 12px;
color: #666666;
}
.Signature a
{
color: #666666;
}
Peter Cortiel