Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the caption of a CHECKBOX in a Grid column
Message
From
21/11/1998 19:04:54
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00160185
Message ID:
00160230
Views:
13
>I have a Grid with CheckBoxes in one of the Column. When the
>user checks or unchecks a CheckBox I want to the change the
>Caption of that CheckBox to "YES" (Checked) or SPACE (Unchecked).
>I do that via the InteractiveChange Event. However, when I do so
>the caption of all the CheckBoxes in that column change, not just
>the caption of the one the user clicked on.
>
>How can I do it ?

The ckbx's refresh() fires before it updates the value. Therefore, in the refresh:

dodefault() && this forces the update of .value with whatever it should be
if empty(this.value)
this.caption=[ nope ]
else
this caption=[ yup ]
endif

That did the trick for me, and was unrelated with grids.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform