Splitter for sub series
Splitter for sub series
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
Hello,
- 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.
Have you tried to use the mouse events (OnMouseDown, OnMouseUp and OnMouseMove)?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.
- 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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |