>I have replaced the textbox in a column with a checkbox. The problem is the user can only see the checkbox when selecting it. The sizing seems okay. I have deleted the textbox control. I can't seem to find any property that has an effect on this problem and would appreciate any help available.
>
>Fred
I couldn't see any reason why I'd ever want the column's sparse setting to be true when a checkbox is in the column, so I put:
this.SetParentColumnSparse()
in the Init method of my checkbox class and then wrote the SetParentColumnSparse method like so:
if not isnull(this.Parent) and this.Parent.BaseClass = "Column"
this.Parent.Sparse = .f.
endif
Using a property to control this might be best, but I have never found a case where I didn't want this to happen. If I did I could just override the SetParentColumnSparse method by putting an asterisk in it.
And . . . an advantage to trying to help people out sometimes . . . I just realized that method is named incorrectly! It's actually setting the column to be
not sparse. What was I thinking? Anyway, you get the idea. Just remember to do a better naming job if you use this! <g>