Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Backcolor doesn't work in form classes?
Message
From
02/04/2003 13:11:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Backcolor doesn't work in form classes?
Miscellaneous
Thread ID:
00773102
Message ID:
00773102
Views:
49
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
Next
Reply
Map
View

Click here to load this message in the networking platform