Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check Box back color in grids
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01171778
Message ID:
01172084
Views:
18
Jim,
Your solution sounds like what I am looking for but I'm not clear on this. According to VFP help a control object can contain other controls but, unlike container objects, do not allow access to the objects contained within them. Also, control does not show on my list of standard controls. Could you explain a little more? Do I first need to create a control object?

Sorry for my ignorance but it seems I still have much to learn in some areas.
Thanks,
John.

>Create a class based on Control. Set its backstyle to 1 Opaque. Add a checkbox to it and sert its backstyle to 0-transparent. In the GotFocus of the chcekbox put This.Parent.BackColor = RGB(128,128,128) (or whatever back color you want. In the checkbox lostfocus set This.Parent.BackColor = RGB(255,255,255). Now put the control class in the column of the grid and set the grid column to sparse = .F.. Run the form and play with the column with the checkbox in it. I think this is pretty close to what you want.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform