Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instanciating containers on form at init.
Message
From
21/07/2001 11:09:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00533517
Message ID:
00533520
Views:
9
>I must have killed the brain cell that contains this information.
>
>I have a form that on init instanciates a number of container classes inorder to display information. If the number of containers is greater than 5, the viewable area of the form is filled and the containers are placed outside of the viewable area. There are generally 8 to 10 containers. I want to enable the verticle scroll bar when the the height plus the top of the last instanciated container is greater than the height of the form.
>
>If I hard code the number of containers, it works, the scroll bar is displayed and works fine. If I do not, the scroll bar is not displayed.
>
>It has something to do with the need of the scroll bar is determined when the form is instanciated.
>
>Ideas?

Fred,
If you set scrollbars at design time then even if you add controls at run time (in init or later) scrollbars work. However there is a glitch even if the controls are there they're not seen till a sizing is done or they get focus.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform