Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Scroll Bars
Message
 
To
14/06/1998 22:49:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00108082
Message ID:
00108097
Views:
32
Hi Daniel,

This feature is available in VFP6, though there are ways to implement this in VFP3/5. Here is a tip which I pulled from Flash's web-site:
You can create your own scrolling regions on a form without a lot of work. First, put the entire "scrolling" region into a container. Next, create a listbox which is populated with the following: 

FOR i = 1 TO this.parent.cntContainer.height 

this.AddItem(STR(i)) 

ENDFOR 

In the MouseUp method, add the following code: 

this.parent.cntContainer.Top = this.top - this.TopIndex 

this.parent.cntContainer.SetFocus() 

The second line of code keeps you from having to add code to the KeyPress event to allow for PageUp, Page Down, up arrow, etc. You can add code to account for this if necessary.
>I need to put scroll bars on a form to make it scrollable. Do such scroll bar classes already exist, or do I need to create them from scratch? If they do need to bee created from scratch, what is the command(s) to make a form scroll up and down?
>
>Any help in this matter is greatly appreciated!!!
>
>Many thanks,
>Dan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform