Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling checkbox in my own class
Message
From
12/11/2011 09:00:18
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01528570
Message ID:
01528738
Views:
126
>I am developing a Checkbox class. Among other things, I want to be able to control when the box gets checked, unchecked, or reset to null.
>
>Under the debugger, I can see that the state of the checkbox has already been modified by the time it reaches the checkbox Click and InteractiveChange events. However, The state has not been modified by the time we reach the GotFocus event.
>
>How can I override VFP's default handling of the checkbox control, and check, uncheck, or reset to .NULL. in my own code.

You can create your own checkbox out of a commandbutton - by changing the button's image according to the value. You'd need to create a .value property, and handle its changes of in .click() (as described elsewhere in this thread). Also, there would need to be some work about refreshing and saving, as commandbutton doesn't have a controlsource.

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