Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Classes
Message
From
05/04/2000 16:02:38
 
 
To
05/04/2000 15:01:39
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00355853
Message ID:
00355904
Views:
15
>I would like to create subclasses of a basic form that have different page options. For example, there would be 4 different subclasses of a basic form that would have 2 pages, 3 pages, 4 pages, and 5 pages each. Is there a way to "spawn" these subclasses or must I create them by hand.

Sounds like a basic form - you drop a pageframe on the form, perhaps subclassed to ask the form about some details for how the pageframe should populate, and then add pages as needed to the pageframe. I don't see a need for a specialized form class to do this, and would advise against building a composite object of a form that contains a pageframe, since it complicates changes later in the design and development phases.

You might create a pageframe subclass that contained some custom properties to describe how to populate the pages, and perhaps page class instances that could simply be added based on the detail from the pageframe or form level properties describing what needed to be there. And in the case of a '1 page' form, you could just not involve a pageframe at all; put the controls on the form instance. Even the basic pageframe has a property for the number of pages (PageCount) and you could just create form instances with the right page layouts, and decide which was needed and fire it up on demand...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform