Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Works visually, but not in PRG?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00820801
Message ID:
00821114
Vues:
22
The ScrollBars property has to be set before you try to create the form (that's why your subclass works). Personally, I've never found a scrolling form to my liking.


>It seems to behave as advertised when SCROLLBARS is assessed in a subclass:
>
public ot
>ot=createobject('mf')
>ot.addobject('c1','container')
>c1=ot.c1
>c1.visible=.t.
>c1.height=600
>ot.show
>
>define class mf as form
>scrollbars=3
>visible=.t.
>enddefine
>
>Appologies for not trying this first!
>
>>When I create a form and set SCROLLBARS to 3 through the visual designer, and then add a container and make its dimensions larger than the form's, the scrollbars appear (as expected).
>>
>>But, when I do it in a PRG, the scrollbars do not appear. Here's the code - all assistance appreciated!
>>
public ot
>>ot=createobject('form')
>>ot.scrollbars=3
>>ot.show
>>ot.addobject('c1','container')
>>c1=ot.c1
>>c1.visible=.t.
>>c1.height=600
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform