Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locking container when .SCX has a scrollbar
Message
De
23/10/2003 17:06:35
 
 
À
23/10/2003 16:08:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00841800
Message ID:
00841840
Vues:
18
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform