Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locking container when .SCX has a scrollbar
Message
From
23/10/2003 17:06:35
 
 
To
23/10/2003 16:08:48
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00841800
Message ID:
00841840
Views:
17
>Hi Everyone,
>
>Anybody know how to lock a container when the .SCX has scrollbar.
>Basically, what I want is that when the .SCX has a horizontal scrollbar, and when the user scrolls it, I wanted that container inside the form to lock(not to move). It means that it will stay in it's place while other object are scrolled to the left.

semantics, I suppose, but when you scroll a form, the controls that "scroll to the left" are really locked (i.e., their position relative to the form doesn't change), and for the container to "stay in it's place" it would need to move (i.e., to keep it's position relative to the viewed area)

anyway, use the form.ViewPortLeft property to determine where to move the container to "keep it in place", and the form.Scrolled event to set it.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform