Now I am really confused:
You give following formula:
TumbWidth= CInt( Me.HScrollBar1. LargeChange * (
Me.HScrollBar1. Width - 2 *
stemInformation .HorizontalScro llBarHeight ) / 100
I need to have formula to LargeChange for given ThumbWidth
LargeChange =TumbWidth*100/( Me.HScrollBar1. Width - 2 *
SystemInformati on.HorizontalSc rollBarHeight )
Now I want to have Tumb as a 10-th of width and looking for large change:
LargeChange =( (Me.HScrollBar1 .Width - 2 *
SystemInformati on.HorizontalSc rollBarHeight )/10)*100/(
Me.HScrollBar1. Width - 2 *
stemInformation .HorizontalScro llBarHeight )=10. So it does not depend on
Minimum and maximum.
Unfortunately tests shows that my formula is wrong :(.
Did I missed something or is your formula incorrect too?
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> schrieb im Newsbeitrag
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
"Boni" <oilia@nospam > schrieb: The width of the thumb for horizontal scrollbars depends on the value of
the scrollbar's 'LargeChange' property too.
This "too" what does it mean.
It only means that 'LargeChange' is an additional dependency.
If I understand you correctly it depoends on Minimum, Maximum and
LargeChange property ONLY? Or is there some other things?
It depends on the width of the scrollbar (for horizontal scrollbars) too
;-).
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>