Splitter for sub series

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
n2n
Newbie
Newbie
Posts: 19
Joined: Mon Nov 23, 2015 12:00 am

Splitter for sub series

Post by n2n » Mon Dec 07, 2015 9:19 am

We have a TChart with multiple series and a TScrollPagerTool, we need to have a splitter between scrollpager and our actual series to be able to resize them, currently we could not find anything to help us achieve this, kindly advice a workaround.

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

Re: Splitter for sub series

Post by Yeray » Mon Dec 07, 2015 2:44 pm

Hello,
n2n wrote:We have a TChart with multiple series and a TScrollPagerTool, we need to have a splitter between scrollpager and our actual series to be able to resize them, currently we could not find anything to help us achieve this, kindly advice a workaround.
Have you tried to use the mouse events (OnMouseDown, OnMouseUp and OnMouseMove)?

- Check when the mouse is in the zone between the two charts (to change the cursor style, at OnMouseMove)
- Check if the mouse has been pressed in that zone (to start the dragging operation, at OnMouseDown), and update a flag.
- Unset the flag at OnMouseUp.
- Change the division ratio at ObnMouseMove when the flag is set.

If changing the divisionRation isn't accurate enough, you should override TScrollPagerTool.SetUpChartLayout to manually set the charts heights.
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