Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OverRiding SubClasses at RunTime
Message
From
03/05/1998 14:02:49
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
OverRiding SubClasses at RunTime
Miscellaneous
Thread ID:
00096608
Message ID:
00096608
Views:
54
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
Next
Reply
Map
View

Click here to load this message in the networking platform