Legend ScrollBar - currently visible rows.

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MVBobj
Newbie
Newbie
Posts: 34
Joined: Fri Jul 17, 2015 12:00 am
Contact:

Legend ScrollBar - currently visible rows.

Post by MVBobj » Wed Sep 23, 2015 6:18 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Legend ScrollBar - currently visible rows.

Post by Yeray » Fri Sep 25, 2015 1:54 pm

Hi,

What problems have you found when trying to implement the function I suggested you here to achieve that?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

MVBobj
Newbie
Newbie
Posts: 34
Joined: Fri Jul 17, 2015 12:00 am
Contact:

Re: Legend ScrollBar - currently visible rows.

Post by MVBobj » Fri Sep 25, 2015 9:09 pm

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
.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Legend ScrollBar - currently visible rows.

Post by Yeray » Tue Sep 29, 2015 2:15 pm

Hello,

I've replied you here with a complete example showing how you could do it.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

MVBobj
Newbie
Newbie
Posts: 34
Joined: Fri Jul 17, 2015 12:00 am
Contact:

Re: Legend ScrollBar - currently visible rows.

Post by MVBobj » Tue Sep 29, 2015 3:21 pm

Hi,

Excellent! This should help quite a bit.

Thanks
.

Post Reply