Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page class in MemberClass of PageFrames destroys everthing
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Page class in MemberClass of PageFrames destroys everthing
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01276081
Message ID:
01276081
Vues:
83
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.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform