Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Backcolor doesn't work in form classes?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Backcolor doesn't work in form classes?
Divers
Thread ID:
00773102
Message ID:
00773102
Vues:
48
I've been discussing my problems with backcolor on someone else's thread. But now that I've simplified the problem as much as I can, I decided to start a new thread because this is just bizarre.

This is VFP 7, btw.

I took a plain VFP baseclass form. Did nothing to it at all. Saved it as a class. Then I sublclassed it as "gridtest".

I took a plain VFP baseclass grid. Put it on "gridtest". The _only_ thing I did was give it one column and change the backcolor of that column to grey. I didn't set a record source or anything.

If I instantiate this form, the backcolor doesn't show up! But, if I copy that same grid onto a form (not a form class; just a plain form) and run it, it's grey!

What the heck?

Ooooh... Something just came to mind. I remember reading that putting an object on a form class and then making changes to it there is "pseudo subclassing" or something like that and makes VFP store the properties differently. I wonder if it's getting confused?

I'm going to go look into the class tables and see if I can see anything. In the mean time, could someone try what I just did and see if you get the same result?

Thanks,

Michelle
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform