Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page class in MemberClass of PageFrames destroys everthi
Message
From
15/12/2007 15:30:30
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01276081
Message ID:
01276106
Views:
23
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform