Page 1 of 1

Legend ScrollBar - currently visible rows.

Posted: Wed Sep 23, 2015 6:18 pm
by 16475083
Hi,

How can I get the number of rows currently visible on the scrollbar?

It seems if I add that to the current LegendScrollBar.Position, I would be able to know if the legend scrollbar position is at the bottom or not.

I also would be able to set the legend scrollbar.position to that number to set it to the bottom (much like setting a standard scrollbar.position to it's maximum position).

All I want to be able to do is detect when the legend scrollbar has hit bottom so I can set the standard scrollbar attached to the chart to it's maximum. Also when the chart's scrollbar hits max, I want to just move (if necessary) the legend scrollbar all the way to the bottom.

Synchronizing the scrollbars CAN'T be that unusual a process to attempt!

Thanks.

Re: Legend ScrollBar - currently visible rows.

Posted: Fri Sep 25, 2015 1:54 pm
by yeray
Hi,

What problems have you found when trying to implement the function I suggested you here to achieve that?

Re: Legend ScrollBar - currently visible rows.

Posted: Fri Sep 25, 2015 9:09 pm
by 16475083
Hi,

I don't understand it. It's a block of barely intelligible code with no explanation of how to use it.

How do I use it? What does it return? What is ItemHeight? What is TotalLegendItems? What do I pass to this function?

I would be very surprised to learn that I'm the only person to ever desire the LegendScrollbar to accurately track the chart scrollbar. There has to be a straightforward way to do this.

Thanks
.

Re: Legend ScrollBar - currently visible rows.

Posted: Tue Sep 29, 2015 2:15 pm
by yeray
Hello,

I've replied you here with a complete example showing how you could do it.

Re: Legend ScrollBar - currently visible rows.

Posted: Tue Sep 29, 2015 3:21 pm
by 16475083
Hi,

Excellent! This should help quite a bit.

Thanks
.