Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual class design and member classes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00774329
Message ID:
00774334
Vues:
15
Hey Evan,

Thanks for your input. However, I subclass a PageFrame from the VFP base. I click on the ... button to change the memberclass property. It gives me the message you're referring to and I answer Yes, destroy everything and use my new memberclass. I choose my new memberclass and it and it's library appear in my memberclass and memberclasslibrary properties. At this point everything is great.

However, if I save that PageFrame and open it back up, voila, there are the 2 default pages back where they were. Same if I don't open it back up but rather try to drop that pageframe on a form. Now, if I up the number of pages, all the new pages show up as my Page class but those first two just stay there and haunt me.

Any suggestions?

Rodd

>Hi Rodd,
>
>When you attempt to set the MemberClass and/or MemberClassLibrary properties of the PageFrame in the property sheet of the PageFrame, you should be prompted whether you want to destroy the existing member classes. If you agree to do this, the two contained pages should inherit from your chosen page class along with any added pages.
>
>If you don't get this prompt, then there's another problem...
>
>HTH.
>
>>I'm trying to create a wizard class in VFP 8.0.
>>
>>I began by subclassing a Page class and adding the properties and methods that I wanted.
>>
>>However, as I try to implement my new Page class as the member class of a PageFrame, I find that I can never get rid of the 2 initial pages that are from the VFP base class.
>>
>>The problem is that our whole development team will be using this wizard class (once it's finished). It seems a bit clunky to tell them, "If you need 5 pages for your wizard, then set the PageFrame's pages to 7 and don't use the first 2 pages of the page frame."
>>
>>Is there a way to ensure that all the pages of a PageFrame will be from my Page class ... even at design time!
>>
>>(I do realize I can remove the first two pages at runtime, but like I said, that could cause problems too if a developer doesn't realize the pages will be deleted as he's designing his form.)
>>
>>Thanks for your help!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform