How to realize a pie chart with scroll bars

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
marder
Advanced
Posts: 115
Joined: Thu May 29, 2008 12:00 am

How to realize a pie chart with scroll bars

Post by marder » Tue Aug 13, 2013 12:22 pm

Hi.

I want to implement a pie chart in Delphi with TeeChart Pro, which can be zoomed in.
When the chart is zoomed I would like to show scrollbars on the right and bottom axis, so that the user is able to see a certain part of the pie chart.

I did not find an easy way to do this.
Am I missing something, or do I really have to add TScrollbars to my panel and do all the scrolling stuff by myself?

Thank you in advance!
Best regards.

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

Re: How to realize a pie chart with scroll bars

Post by Yeray » Wed Aug 14, 2013 2:09 pm

Hi,
marder wrote:or do I really have to add TScrollbars to my panel and do all the scrolling stuff by myself?
If you want is to change the TChart Aspect.Zoom/ZoomFloat, Aspect.HorizOffset/HorizOffsetFloat and Aspect.VertOffset/VertOffsetFloat properties, as you say, you could to it using ScrollBars.
Alternatively, you could use Mouse events in a similar way than TeeCommander does, when activating the Move and Zoom buttons in the component.
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

Post Reply