Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change and remeber properties ?
Message
 
 
To
10/03/1999 19:12:56
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00196159
Message ID:
00196213
Views:
30
Peter,

Basically no you can't at runtime change class definitions. Your MyLabel class though can easily have code in it's Init() method to read property settings from a system table or the windows registry and set it's property values. In the Destroy() those values can be written to the data store (if the user can change them at runtime). All of your labels derived from MyLabel will inherit this behavior.

One of my low level form classes uses a Persist object to restore/save properties line Top, Left (and Height and Width of resizeable forms) so the forms pop back where the user last had the form.

>Let´s assume a subclass MyLabel off the label class, and further assume that all labels in a given project are subclasses of MyLabel,
>i.e. MyLabel1, MyLabel2...
>
>Here is the 64000$ question:
>
>Is it possible to set the FontName, FontSize, or for that matter any other writable property of MyLabel at runtime, have the desired effect on all subclasses of MyLabel as they are called in forms, and remember the new settings the next time the application runs?
>
>All without major programming, that is...
>
>Any tips & tricks highly appreciated
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform