Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OverRiding SubClasses at RunTime
Message
De
03/05/1998 14:02:49
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
OverRiding SubClasses at RunTime
Divers
Thread ID:
00096608
Message ID:
00096608
Vues:
55
I would like my users to be able to control some formats globally that are not covered by the SET commands. Can I change, for example, the property of txt.backcolor to 255,255,0 (yellow) - where “txt” is my baseclass which is derived from FoxPro’d TextBox control, so that ALL textboxes in ALL my forms in this application would have a yellow background starting from when the user makes this change.

This is just an example of what I'm trying to do that's easy to describe. I know that in this case, the Windows colors could have been used.

All I can think of is keeping the preference value in a table, allowing the user to change the table, and having my class take it’s value from the table and I’m not really sure that this approach would work smoothly.

Bob
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform