469,358 Members | 1,639 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,358 developers. It's quick & easy.

Scrollbar maximum property?

Hi
I have some problems understanding the properties for the scrollbar class.
F.eks. how do I set the Maximum property in comparison to the Height
property if I for example want to have the scroller to have half the size of
the scrollbar? If the question is formulated a little weird, an explanation
of the ScrollBar Maximum, Height and Value properties would be great?

Regards
Thorbjorn
Nov 16 '05 #1
3 5138
Hi Thorbjorn
The maximum property is setting or getting the upper limit value of the
scrollbar range ( that range is set between the min and max properties ) .
height is for the height of the control in display so that is away for
logical possible steps between the max and the min and value is for
current position of the scroll box on the scroll bar control ( of course
within min and max)
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #2
Hi...
Thanks for taking time to answer my question... but I quite does not
understand it yet.
The maximum property is setting or getting the upper limit value of the
scrollbar range ( that range is set between the min and max properties ) .
height is for the height of the control in display so that is away for
logical possible steps between the max and the min and value is for
current position of the scroll box on the scroll bar control ( of course
within min and max)


If I set the "height=100", and the "maximum=100", how do I set the height of
the scroller? I my reasoning if I set the "height=100" and the "maximum=200"
the scroller would have half the size of the entire scroll bar, but it does
not seen to be like that...

Regards
Thorbjørn
Nov 16 '05 #3
Hi Thorbjorn
That is because the height has nothing to do with the maxmim . hight is
the physical display thing . lest say for the sake of example that height
100 means that the bar will be 100 pixels for example from point (300, 300
) to point ( 300,400) on the controlling frame. Min and max is something
else , they define the stepping of the of the scroll on the bar so for the
same bar of the last example if we set min to 0 and max to four then i have
four possible steps on that bar step I so the scroll would be at point
(300, 325) , 2 at point (300, 350) .. etc. hope that explains it .

Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by markusszil | last post: by
4 posts views Thread by juli | last post: by
6 posts views Thread by Colin McGuire | last post: by
3 posts views Thread by spielmann | last post: by
reply views Thread by d.steininger | last post: by
6 posts views Thread by Steve Barnett | last post: by
3 posts views Thread by MrNobody | last post: by
1 post views Thread by Victor Hadianto | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.