Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6 Tip-o-the-day
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
VFP6 Tip-o-the-day
Miscellaneous
Thread ID:
00119209
Message ID:
00119209
Views:
78
Folks,

VFP6 has added a Scrollbars proprty to fomrs. You can now have vertical, horizontal, or both scrollbars in a form. There are new properties for you to use in managingthe scrollbars and the area of the form in sight. The display area of the formis called the View Port.

The new properties are ViewPortTop, ViewPortLeft, ViewPortHeight, and ViewPortWidth. These properties are read only at desing and runtime. There is a method named SetViewPort that can be used to chage the ViewPortLeft and ViewPortTop properties. The other two change when you change the size of the form, or the user resizes the form.

The scrollbars are smart in that they will disappear if the user resizes the form such that they are no longer necessary.

Finally, there is a scrolled event that allows you to respond programmatically to the user scrolling with the scrollbars.
Next
Reply
Map
View

Click here to load this message in the networking platform