Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scrollable Forms, LTD.
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Scrollable Forms, LTD.
Miscellaneous
Thread ID:
00204535
Message ID:
00204535
Views:
65
It was like a dream come true! I've been trying for a while to make a portion of a form scrollable, using a large container and up/down command buttons and Up/Dn arrow keys on Form.KeyPress()which, when clicked / pressed moved all the controls within the large container up or down. Pretty slow! Then I discovered the ViewPort concept with the Form.SetViewPort(nleft, ntop) method. So I got rid of the large container and reinstantiated all the objects in the scrollable form. Works like a dream, if.. the bottom coordinate of the 'bottommost' object exceeded a certain value (which is 2 * screen dimension, i.e. if the resolution is 800 x 600 and the bottom of the control is at 1201 or lower) the scroll bars disappear, although the Form.ScrollBars property returns the initial value as if the scrollbars were there !?!
I understand that the forms were made scrollable in VFP6 to permit the hosting and functionality of ActiveDocuments, but why would there be a limitation, or is it?
Any comments, suggestions of workarounds greatly appreciated.
TIA
Reply
Map
View

Click here to load this message in the networking platform