ViewXY scrollbar range questions
Posted: Fri Aug 08, 2014 7:55 pm
I have a bunch of SampleLineSeries, and I want to add a scrollbar to my window.
So i add it alright, and am trying to update the scrollbar based on where my window is.
So, in my Range Changed event, I do the following:
scroll.Minimum = 0;
scroll.Maximum = 16000; <-- sample maximum. I do have a delta that is very small, .00125 or something
scroll.Value = (range.max-range.min)/.00125 <-- lets say 8000 in this example
Here's my question: How do i tell how wide the scrollbar is? I'm referring to the actual rectangle you click with your mouse to drag.
For me, its very small when im zoomed out. I don't know how to tell it "you're using 50% of your range, so make the button very large).
Thanks!
So i add it alright, and am trying to update the scrollbar based on where my window is.
So, in my Range Changed event, I do the following:
scroll.Minimum = 0;
scroll.Maximum = 16000; <-- sample maximum. I do have a delta that is very small, .00125 or something
scroll.Value = (range.max-range.min)/.00125 <-- lets say 8000 in this example
Here's my question: How do i tell how wide the scrollbar is? I'm referring to the actual rectangle you click with your mouse to drag.
For me, its very small when im zoomed out. I don't know how to tell it "you're using 50% of your range, so make the button very large).
Thanks!