Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date column in the grid with SET CENTURY ON
Message
De
11/03/2005 10:57:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00993628
Message ID:
00994843
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform