Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Baseclasses not te be subclassed
Message
 
To
22/10/1998 06:34:47
Marco Beuk
Innovero Software Solutions
The Hague, Netherlands
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00149269
Message ID:
00149275
Views:
17
>Columns, headers and pages cannot (visualy) be subclassed.
>Why is this and how should one deal with this?
>
>Example: when a user clicks a page in a pageframe i want its caption to turn bold so the user can see he/she has seen the page.
>I now have 'This.FontBold=.T.' in the Click() of all the applications pages (about 70 pages total). Now the user decided he/she doesn't want the page's caption to turn bold but red. Now i have to change the code at 70 places! This cannot be the goal of OOP.
>
>For properties i can use SetAll() but there's no such function for methods.
>
>I wonder how you guys deal with this, please let me know.
>
>
>Thanks,
>
>Marco.
>
>BTW: Optionbuttons can be subclassed, so can optiongroups. Subclassed optionbuttons cannot be used in a subclassed optiongroup!?!?!?!?

Marco,
if you visit David Frankenbachs' web site ( he's a UT member of great note ) he has a pagerefresher class, it's basically a line class that he adds to all pages through the init method of a pageframe, you could set your properties in the uienable event of the line class ( visible = .f. ) which fires when your page is activated/deactivated
Regards
Pete Kane
Regards,
Peter J. Kane



Pete
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform