Detect when Legend Scrollbar is at maximum position
Posted: Mon Sep 21, 2015 2:20 pm
Hi,
I have a chart with a scrollbar and the legend has a scrollbar. I have the scrollbars tracking along with each other using various events.
When there is a difference between the number of visible items on the chart and the items visible on the legend scrollbar, then when the one with the most items reaches it's scrollbar max, the other ISN'T at it's max. Usually it's the legend scrollbar that has more and when it reaches it's max, the chart isn't displaying it's maximum items. This could be confusing to end users.
My solution is: When the legend scrollbar hits bottom - set the chart's scrollbar to max position.
How can I detect when the legend scrollbar has reached it's maximum position? A standard scrollbar has max, min & position properties I can evaluate and adjust to accordingly - but the legend scrollbar does not.
Similarly - how would I set the legend scrollbar to max position if the chart scrollbar reaches max position first?
Two questions:
1. How can I detect when the legend scrollbar has reached it's maximum position?
2. How can I set the legend scrollbar to it's maximum position?
Thanks
.
I have a chart with a scrollbar and the legend has a scrollbar. I have the scrollbars tracking along with each other using various events.
When there is a difference between the number of visible items on the chart and the items visible on the legend scrollbar, then when the one with the most items reaches it's scrollbar max, the other ISN'T at it's max. Usually it's the legend scrollbar that has more and when it reaches it's max, the chart isn't displaying it's maximum items. This could be confusing to end users.
My solution is: When the legend scrollbar hits bottom - set the chart's scrollbar to max position.
How can I detect when the legend scrollbar has reached it's maximum position? A standard scrollbar has max, min & position properties I can evaluate and adjust to accordingly - but the legend scrollbar does not.
Similarly - how would I set the legend scrollbar to max position if the chart scrollbar reaches max position first?
Two questions:
1. How can I detect when the legend scrollbar has reached it's maximum position?
2. How can I set the legend scrollbar to it's maximum position?
Thanks
.