Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Static or Dynamic Form Classes?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00667997
Message ID:
00668189
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
>Actually, Irv, that is what I was trying to convey. We have been talking about only instantiating the objects on the other pages when those pages are clicked or activated.
>
>Part of the drawback is that you can't visually lay out the pages at that point. So, the program becomes faster for the user but slows down the development process.
>
>I guess I'm wondering what others are doing. It sounds as if you and Cathi both work in shops that go ahead and place all the components on the form instead of trying to dynamically add things at run time.
>
>Is anybody building forms as minimally as possible and adding things as needed at runtime? Or is that just overkill for the minimal amount of performance that it gives.
>
>If I remember correctly, Maria Atkins recommends a kind of dynamic approach. Is anyone familiar with how she handles the drawback of not being able to visually desing a form when you build dynamically?

If I'm going to be adding controls dynamically, I'll just create a container and put the controls in there. Then I'll go ahead and drop the container right on the form and code like normal. When I'm about finished I'll go back and remove the container from the form and add the code necessary to instanciate it dynamically (usually in the Activate event of the page, if in a pageframe). Kind of the best of both worlds this way.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform