Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkboxes in Grids
Message
From
17/10/1998 16:49:59
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
15/10/1998 17:12:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00147252
Message ID:
00147833
Views:
24
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform