Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Works visually, but not in PRG?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00820801
Message ID:
00821114
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform