Page 1 of 1
Splitter for sub series
Posted: Mon Dec 07, 2015 9:19 am
by 16577003
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.
Re: Splitter for sub series
Posted: Mon Dec 07, 2015 2:44 pm
by yeray
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.