Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sub-Classing - 1 Library or 'n' Libraries
Message
From
24/02/2004 10:00:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
24/02/2004 09:47:39
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00880249
Message ID:
00880259
Views:
22
>Hi All,
>
>I have a question about sub-classing the VFP controls. Assuming the statement “Sub-Class Everything” is correct. When you create a new class it has to go in a class library. The classes created will be used in all executable programs. Some of these require only a few controls on the form. Others will require several. The question I/We have is: Which is better?
>
>1) Place each sub-classed control into separate libraries. One for a textbox, one for a combobox, grid, form, etc…
>
>2) Or place all of them in the same class library.

My rule of thumb is to put all the level 1 controls in one library, specially if it's a framework type, ie. to be used accross apps.

Within apps, if I have to subclass further, group them by purpose. Separate printing stuff from toolbar stuff from messaging stuff from login stuff from system maintenance etc etc. But I don't claim any originality here - I got that habit from frameworks.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform