Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check Box back color in grids
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01171778
Message ID:
01172084
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform