Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Painted into a corner? - scrolling, growing form
Message
From
22/09/2005 16:27:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Painted into a corner? - scrolling, growing form
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01052180
Message ID:
01052180
Views:
49
Hi Everyone,

Wonder if I have painted myself in a corner. Have created a "scrolling, growing" "dialog" (form) to present users with series of questions (did this instead of a "wizard" approach of numerous mini-forms). As they answer one question, another set of controls is instantiated onto the form for them to ask. Start off with form set to something like 300 H x 500 w. Once I get more controls than will fit on the form, I increase the size of the form programmatically.

I have to do that or the new controls do not show on the form. When I do that, with vertical scrollbar set on, I get a scrollbar.

Works good at first but after a few questions, form grows to be off the bottom of the screen. So then I thought I have to limit the size of the form to some max. But then my controls do not show.

So how do I get the "paintable" area of the form to grow without growing the entire window that the form is in. Or how do I keep the form growing and yet only a certain portion of the form shows on the screen.

I looked at the SETVIEWPORT method but was not sure what it does.

Albert
Next
Reply
Map
View

Click here to load this message in the networking platform