Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing the PAGE control
Message
 
 
À
15/01/2003 10:50:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00741894
Message ID:
00741949
Vues:
21
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform