General information
Category:
Forms & Form designer
>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only