Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shall we always subclass base controls
Message
 
To
26/04/2000 20:31:45
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00363904
Message ID:
00363924
Views:
30
I always use a subclass for any control I use (even labels), except for those that can't be used in the visual designers. The reason is if you decide you want to add any kind of global functionality later. If you didn't subclass, you have to go to every instance of the object and put the functionality in each one. If you subclass, you can make the change directly in the subclass, and have it inherited to all the instances.


>Probably naive question and has been answered already. What benefits of subclassing base controls if I am not intending to extend their functionality or build an extensive framework. For instance I just want to use a form template ( pageframe with several pages and with a grid on one page and listbox on other). What benefits of using subclassed grid and listbox instead of base ones.
>
>What are the usual practices with VFP ?
>
>Thanks.
>Michael
Previous
Reply
Map
View

Click here to load this message in the networking platform