Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I subclass forms properly?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
How do I subclass forms properly?
Divers
Thread ID:
00178197
Message ID:
00178197
Vues:
74
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!
Independant Foxpro Developer
Spring Hill, FL
jpirola@tampabay.rr.com
352/686-8373
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform