How to set a scrollbar to fill the whole scroll area?

Just starting out? Need help? Post your questions and find answers here.
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

How to set a scrollbar to fill the whole scroll area?

Post by coco2 »

What parameters do you give to the scrollbar to make it fill the whole scroll area, so you can't move it?
Like what do you set the min, max, pagelength and gadget value to? I have never worked this out after experimenting for days.
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: How to set a scrollbar to fill the whole scroll area?

Post by coco2 »

I found the solution, you just have to set the pagelength to max + 1, and also the maximum has to be min + 1 (for it to work on Mac)

Can't believe I couldn't figure it out for so long :oops:
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: How to set a scrollbar to fill the whole scroll area?

Post by coco2 »

Ok one more thing. Is it possible to show a scrollbar, but NOT the slider? Like in Firefox if a web page is not big enough to scroll, the scrollbar is there, but there's no slider.
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: How to set a scrollbar to fill the whole scroll area?

Post by coco2 »

Found it, you just use DisableGadget()
Post Reply