Legend windowshades when scrlbar and legendscrlbar connected
Posted: Fri Aug 28, 2015 6:21 pm
Hi,
I have a scrollbar at the bottom of my chart and a legend scrollbar on the chart legend. I have them connected with the code:
ChartTool1.Position := ScrollBar1.Position; in the ScrollBarChange event
and
ScrollBar1.Position := ChartTool1.Position; in the ChartToolScrolled event.
If there are more entries on the legend than there are items per page, the legend starts to shrink in height (windowshades) as the bottom scrollbar nears it's maximum until finally the total items on the legend equals the number of items per page.
At this point, dragging the legend scrollbar produces strange results - if I click-hold the legend scrollbar and move the mouse up, the legend increases in height with the bottom of the legend moving down along with the legend scrollbar while the mouse moves further away from the scrollbar until I am moving the legend scrollbar with the mouse inches away from the scrollbar instead of the mouse tracking the center as it should be doing.
Is there a way to synchronize these two scrollbars without this error?
Thanks.
I have a scrollbar at the bottom of my chart and a legend scrollbar on the chart legend. I have them connected with the code:
ChartTool1.Position := ScrollBar1.Position; in the ScrollBarChange event
and
ScrollBar1.Position := ChartTool1.Position; in the ChartToolScrolled event.
If there are more entries on the legend than there are items per page, the legend starts to shrink in height (windowshades) as the bottom scrollbar nears it's maximum until finally the total items on the legend equals the number of items per page.
At this point, dragging the legend scrollbar produces strange results - if I click-hold the legend scrollbar and move the mouse up, the legend increases in height with the bottom of the legend moving down along with the legend scrollbar while the mouse moves further away from the scrollbar until I am moving the legend scrollbar with the mouse inches away from the scrollbar instead of the mouse tracking the center as it should be doing.
Is there a way to synchronize these two scrollbars without this error?
Thanks.