Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I subclass forms properly?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00178197
Message ID:
00178228
Views:
21
Joe,
Drew Speedie talks about this 'feature' 'problem' (pick one) in his Visual MaxFrame docs. If you subclass an object with controls (as your form is) then what you have observed is correct. The CONTAINER (in this case the form) is subclassed but the controls are carried along. Your choice is to use this functionality or to subclass each type of control individually and re-build the frame.

HTH
Barbara

>I have two general class libraries called JPCNTRLS.VCX & JPFORMS.VCX
>
>JPCntrls has my controls and JPForms has a few forms.
>The forms also happen to use some of the controls from JPCntrls.
>
>Now, if I simply subclass everything to make application-specific class libraries, the controls subclass just fine, but I get a problem with the forms.
>
>I am creating two new class libraries called APPCNTRL & APPFORMS by doing:
>CREATE CLASS (NewClass) OF (Newlib) AS (OrgClass) FROM (OrgLib)
>for each class in each .VCX file.
>
>A form itself will subclass just fine, but the controls ON the form will STILL be the actual controls from JPcntrls. They don't actually get subclassed in and of themselves.
>
>Is it proper for me to want the controls on the APPFORM forms to be based on the controls in the newly created APPCNTRL?
>
>I'm doing the changes manually, but it doesn't feel right.
>
>Any suggestions or input would be appreciated.
>
>Thanx very much!
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform