General information
Category:
Forms & Form designer
Title:
Painted into a corner? - scrolling, growing form
Environment versions
Network:
Windows 2000 Server
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only