>>>Andrus,
>>>
>>>Make sure the caption really is set to (None) on the property sheet.
>>>
>>>>
Column1.Sparse = .F.
>>>>Column1.Checkbox1.Centered = .T.
>>>>Column1.Checkbox1.Caption = ""
>>
>>David,
>>
>>Yes .caption property displays (none) in property sheet.
>>
>>In my checkbox class init event I have :
>>
>>
>>IF TYPE('this.parent.sparse')='L'
>> * Checkbox is in grid column. Make it centered.
>> this.parent.sparse= .f.
>> IF VERSION()>='Visual FoxPro 08'
>> this.centered = .t.
>> ENDIF
>> ENDIF
>>
>>But the checkbox is still left-aligned!
>>
>>According to VFP 8 help file in .centered property, it is possible
>>to center a checkbox in grid. Unfortunately, I havent found ANY sample
>>which shows this.
>>
>>Is there any sample code which shows centered checkbox in grid ?
>>Is it possible to center checkbox in VFP 7 ?
>
Cetin,
>With VFP8 it's simple :
>Add a checkbox control to column, set caption to none (''), centered=.t., column sparse to .f. (currentcontrol = check1)
As I wrote, I did this, but checkbox is still left-aligned. Any idea ?
>In VFP3-7 possible using a container. Check Message #
714360I use buffered grid for data entry. I need to dedect if user tries to
move out of row and ask save/discard/cansel message.
I think keypress event in your code breaks my form logic. It takes probably a lot of time to test and adapt this code to my grid class.
Andrus