Information générale
Catégorie:
Gestionnaire d'écran & Écrans
For whatever reason, it appears that when the grid sets it's own backcolor (ie - in the init), it forces all the columns' backcolors to match it's own. You'll have to set the column backcolor in the grid's init. It also seems that if you explicitly set the grid backcolor later, it will again force the column to match it.
Alan
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement