Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the caption of a CHECKBOX in a Grid column
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00160185
Message ID:
00160267
Views:
15
By the way,

Since you are a UT SysOp perhaps you will be able to answer this :

I have just realised that item (3) of the solution I posted yesterday
had been cropped and the reason is that the UT software gets rid of
anything that is enclosed inside angled brackets (Less Than and Greater Than).

Why is that ? One of the great Internet standards to indicate GRIN is the use
of a lowercase "g" inside two angled brackets. I used that once or twice
only to find that it had been erased by the UT software. I know that you
can always use :), but certain habits do die hard.

Anyway, here is the solution again, with the angled brackets taken off
so that the UT software does not modify the posting :

1) Put two CheckBox controls in the grid column, one with the caption you want for a
ticked CheckBox and the other with the caption you want for an un-ticked CheckBox.

2) In each of the CheckBoxes WHEN event put : This.Refresh to ensure that
the CheckBox column cell gets refreshed as you click on it rather than when you
do something else like changing column, row, or scrolling.

2) Set the Column's current control to NONE.

3) Set the Column's DynamicCurrentControl to :

IIF(Controlling_Variable/Field = .T., "Ticked_CheckBox_Name", "Un-ticked_CheckBox_Name")

4) Go for it !

Michel.

================== Original Message Follows ========================

>Congratulations on solving your checkbox problem!
>
>It's always appreciated if someone posts the answer to his own question if he works it out, because many other readers will want to know. That's why we leave ALL the questions and answers up to be read instead of deleting them as soon as an answer is posted or no longer needed by the original author.
>
>>Hi Barbara,
>>
>>Thank you. I eventually worked it out but could not get back at my message
>>to "reply to it" telling people not to bother answering it. Incidentally,
>>how does one do that, or, even, is it possible to delete one's own
>>posted messages ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform