So when the user moves the canvas objects up and down, it will resize the boxes... great I can make that happen.
However, because of the left mouse down button being pressed, and x axis movement will cause the chart to move horizontally - which unless you move the mouse absolutely perfect on the y axis, it creates a bad user experience.
I tried to combat this a little with
ChartNavigate(_capi.GetChartID(), CHART_END);
However that solution is also rough.
Is there anyway I can zero out any x-axis movement, or lock the chart in position while the sliders are being used.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I've got a custom trade setup box built that I want the user to be able to customize with the sliders.
The sliders are a canvas obj
_topCircle = new CCanvas();I have some code that will detect mouse down + drag on these canvas objects.
So when the user moves the canvas objects up and down, it will resize the boxes... great I can make that happen.
However, because of the left mouse down button being pressed, and x axis movement will cause the chart to move horizontally - which unless you move the mouse absolutely perfect on the y axis, it creates a bad user experience.
I tried to combat this a little with
However that solution is also rough.
Is there anyway I can zero out any x-axis movement, or lock the chart in position while the sliders are being used.
Thanks very much.