>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!
I think the pageframe class by default has two pages included. What if you subclassed pageframe first and remove the pages by setting subPageFrame.pagecount = 0. I am looking at VFP 8.0 and it seems to work.
Carole Shaw
Fred Hutchinson Cancer Research Center
Eagles may soar, but weasels don't get sucked into jet engines.