Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the caption of a CHECKBOX in a Grid column
Message
De
21/11/1998 19:04:54
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00160185
Message ID:
00160230
Vues:
20
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform