Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page class in MemberClass of PageFrames destroys everthi
Message
De
15/12/2007 15:30:30
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01276081
Message ID:
01276106
Vues:
22
Hi Bhavbhuti,

I would not add a MemberClass to an existing class. You will need to create a new base class with the member class and then port over. I tried adding a MemberClass to a working grid once and it broke all kinds of things. The good news is that MemberClass works good if you use it right.


>Hi all
>
>I was trying to use MemberClass of the PageFrame to provide a Page class of mine. I did get the warning that stuff will change to my Page class, but this changes also for all forms where I have used the PageFrame, all the controls on the forms have disappeared because the page names have changed. My class definition is as follows:
>
>
DEFINE CLASS cpagPage AS PAGE
>	FONTNAME = "TAHOMA"
>
>	FUNCTION ACTIVATE()
>		DODEFAULT()
>		
>		THISFORM.RefreshOnce()
>	ENDFUNC
>ENDDEFINE
>
>I tried to change the line DEFINE CLASS cpagPage AS PAGE to DEFINE CLASS Page AS PAGE but then the problem goes away and so too my class usage.
>
>Please advise if I can use custom Page class without co-lateral damages or hacking the forms and classes.
>
>Thanks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform