Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing containers
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00090808
Message ID:
00090963
Views:
37
Hi Garrett,
Drew Speedie talks about this problem in his Visual MaxFrame docs. Basically, his advice is that if you want to subclass any container-type control (container, pageframe, etc.) that you must be aware of the hierarchy of both the container and the internal controls. Therefore, he suggests you rarely subclass this type of class, but only the parts. Reassemble them yourself.

We've been using your formula for 'set' items like a CSZ container, but keeping to separate components for anything more elaborate.

HTH
Barbara

>My class libraries look something like:
>
txtBase
>  txtStd
>    txtFrame
>      txtApp
>
>In the Framework level of my libraries, I'll define a CSZ container class, which takes a Zipcode and fills in the City and State. Then,
>I'll subclass it at the App level. However, it is still using the
>textboxes from the Framework level, rather than the App level. Is
>there any way to subclass a container class and get it to pick up
>the "correct" user interface elements?
>
>Or do I have to break the behavior out into a custom class, and
>just use the textboxes at the correct level, rather than a subclassed
>containerL
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform