Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instanciating containers on form at init.
Message
De
21/07/2001 11:41:17
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
21/07/2001 11:33:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00533517
Message ID:
00533525
Vues:
13
>>>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
>
>Thank you, It turned out that I needed to do both a setfocus to the last container and a resize. Eitehr by itsself did not do the trick.

I do like this and works.
lnWidth = WidthWhereRightmostWouldBeVisible
lnHeight = HeightWhereBottommostWouldBeVisible
with thisform
 .Lockscreen = .t.
 lnSaveWidth = .Width
 lnSaveHeight = .Height
 .Width = lnWidth
 .Height = lnHeight
 .Width = lnSaveWidth
 .Height = lnSaveHeight
 .Lockscreen = .f.
endwith
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform