Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkboxes in Grids
Message
De
17/10/1998 16:49:59
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
15/10/1998 17:12:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00147252
Message ID:
00147833
Vues:
26
>Does anyone know how to change the current caption on a graphical checkbox depending on whether it's checked or not? It seems that when I change it, the rest of the column then changes also when that row recieves focus. Thanks.

I have a checkbox (non-graphical, for that matter), which changes caption when changing value. I've had to do this in the refresh method:

dodefault()
if !empt(this.value) and !empt(this.caption_yes)
this.caption=this.caption_yes
retu
endif
if Empty(this.value) and !empt(this.caption_no)
this.caption=this.caption_no
retu
endif
nodefault

The DoDefault() was the trick - the checkbox's .Refresh fires _before_ it changes the value, so I've had to force it to take new value first, and then do the rest of my code.

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