Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Classes
Message
From
05/04/2000 15:34:32
 
 
To
05/04/2000 15:18:50
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00355853
Message ID:
00355886
Views:
15
>>>I would suggest to have one form with the 2-page pageframe, and instantiate the necessary number of pages at runtime with .Addobject method. <<
>
>
>I'm a bit cloudy about this technique. Where is the addobject method located? Is it in the original 2-page pageframe? What would that code look like?
>
>Thanks.


If this is all you want to do, the same can be achieved by adjusting the pagecount property at runtime!

However, I imagine you are going to have to put controls onto these pages again I am assuming at development time. It is possible to generate classes by adding records to a vcx file, but you will have to have a good understanding ot the structure first. My recommeded technique would be to
1. Create two classlibraries, one containg a subclass of your form.
2. Open them up in something like the project manager
3. Drag and drop the form class from one library to the second library
4. Reaname the new class
5. Drag and drop it back
6. Add the new page and drop the necessary controls on it.

Hope this helps

Mace
Previous
Reply
Map
View

Click here to load this message in the networking platform