Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox woes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
01267030
Message ID:
01267132
Vues:
8
>I have replaced the textbox in a column with a checkbox. The problem is the user can only see the checkbox when selecting it. The sizing seems okay. I have deleted the textbox control. I can't seem to find any property that has an effect on this problem and would appreciate any help available.
>
>Fred

I couldn't see any reason why I'd ever want the column's sparse setting to be true when a checkbox is in the column, so I put:
this.SetParentColumnSparse()
in the Init method of my checkbox class and then wrote the SetParentColumnSparse method like so:
if not isnull(this.Parent) and this.Parent.BaseClass = "Column"
	this.Parent.Sparse = .f.
endif
Using a property to control this might be best, but I have never found a case where I didn't want this to happen. If I did I could just override the SetParentColumnSparse method by putting an asterisk in it.

And . . . an advantage to trying to help people out sometimes . . . I just realized that method is named incorrectly! It's actually setting the column to be not sparse. What was I thinking? Anyway, you get the idea. Just remember to do a better naming job if you use this! <g>
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform