Information générale
Titre:
OverRiding SubClasses at RunTime
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
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