Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date column in the grid with SET CENTURY ON
Message
From
11/03/2005 10:57:58
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00993628
Message ID:
00994843
Views:
17
>I also added some code to our cGridTextbox (unfortunately, I had to modify the MereMortals class for this). I added nBackColor and nForeColor properties to this textbox and I have:
>
>
>this.nBackColor = this.BackColor
>this.nForeColor = this.ForeColor
>
>this.BackColor = this.Parent.Parent.HighlightBackColor
>this.ForeColor = this.Parent.Parent.HighlightForeColor
>
>
>and restore them back in LostFocus. Seems to work nicely.


Nadya,

I don't know MM but normally what you do with any commercial or 3rd party framework is you subclass it into an intermediate class level. Then you modify your intermediate cGridTextbox, not the framework's bases class.
This way, if and when the framework gets updated, it does not overwrite your changes. Furthermore, your intermediate class inherits all their changes, but if you don't like one of them or it messes your apps, you can allways override it at the intermediate level, therefore not affecting your app-specific instances.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform