Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Centering a checkbox in grid column
Message
From
27/06/2003 12:59:39
 
 
To
27/06/2003 06:45:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00804414
Message ID:
00804776
Views:
44
>>>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 #714360

I 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
Previous
Reply
Map
View

Click here to load this message in the networking platform