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
- Check if the mouse has been pressed in that zone (to start the dragging operation, at
- Unset the flag at
- Change the division ratio at
If changing the divisionRation isn't accurate enough, you should override
Have you tried to use the mouse events (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.
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
OnMouseMove
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 |