Scrollbar maximum property?

  • Thread starter Thread starter Thorbjørn Jørgensen
  • Start date Start date
T

Thorbjørn Jørgensen

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
 
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
 
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
 
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 .
 
Back
Top