Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form with scrolling bars
Message
De
24/10/1997 01:14:56
 
 
À
21/10/1997 13:21:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00055162
Message ID:
00056470
Vues:
44
>Hi Tony!
>
>Could you show an example about how to deal with this stuff? Just make a
>form with a scrolbar but it does nothing. And I haven't any help file about
>a properties and events of this object.
>
>>through all activex stuff. It comes up as microsoft forms 2.0 scroll
>bar.
>>it costs $25 last I checked. I have used the microsoft one to create a
>>scrolling form for graphical layout, and it works great!

You create a container to hold everything that you want to scroll. The scrollbar I am using has a control source property that gets adjusted each time I click the scrollbar. I hooked a form property to the controlsource of the scrollbar. Then, whenever I got a change or scroll event I updated the container.top and container.left with the form property linked to the scrollbar. There may be better ways to do this, but this worked for me.

Also your form.resize event should also resize the scroll bars, and reposition them to stay on the edges of your form.

thus:

horizscrollbar.controlsource=thisform.horizholder

and on the horizscrollbar.change and horizscrollbar.scrolled events:
thisform.cntView.left = -thisform.horizholder

I used the negative because I wanted this direction of motion when I clicked, a positive value also works.

hope this helps
tc
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform