Scroll a series by dragging it

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SteveP
Advanced
Posts: 132
Joined: Sun Sep 07, 2003 4:00 am

Scroll a series by dragging it

Post by SteveP » Fri Feb 13, 2004 9:48 pm

Axis Arrows and Axis Scroll tools allow a series to be scrolled (Line series, Left axis) on its associated axis without scrolling other series or the whole chart. Is it possible to use the mouse to click anywhere on a Line Series points (or the lines between points) and drag to scroll only that series vertically in a similar fashion ?

Steve

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Feb 17, 2004 9:18 pm

Hi, Steve.

Yes, it can be done - with some coding. You could use chart OnMouseDown, OnMouseMove and OnMouseUp events to:
a) capture current mouse position
b) perform a scroll by setting axis minimum and maximum value (adding offset to both values)
Marjan Slatinek,
http://www.steema.com

Post Reply