Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing the PAGE control
Message
 
 
To
15/01/2003 10:50:14
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00741894
Message ID:
00741949
Views:
19
>>At Runtime you can Add your new page with Thisform.PageFrame1.AddObject("MyPage1","Mypage")
>
>That's great Esparta, it's basically what I was looking for.
>
>Now, how can I have the first page of a PageFrame (the default "unremovable" page) be one of my newly-defined pages? Is it even possible?
>
>Plus, is there no way at all for me to modify a form that uses a PageFrame with my pages visually?
>

Stephane,
You can create a subclass of a pageframe and set the PageCount to 0 (no pages). Then in the Init, you can add as many pages of your class as you need.

BTW, the Page class has been added as a visually subclassable class in VFP 8. You can also specify the Page class to use for all pages of the pageframe using the new MemberClass and MemberClassLibrary properties. Your classes will be used even in the designer.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform