General information
Category:
Object Oriented Programming
Title:
Baseclasses not te be subclassed
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!?!?!?!?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only