By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,424 Members | 1,402 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,424 IT Pros & Developers. It's quick & easy.

Scrollbar maximum property?

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.