You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Move(int x, int y)
There is a bug somewhere. You need to print (or look in the debugger, but it often doesn't work) the coordinate and size values.
Here is the logic in the comments:
When trying to move the panel after changing the chart size, it constantly corrects the coordinates and does not let you move the panel window freely...
Most likely the value of this.m_higher_wnd variable is not relevant in the Move() method. These values are set in the event handler:
It is quite possible that somewhere here the oversize flags are not set correctly when the chart window is expanded.
If you write these lines
at the very beginning of the Move() method - to force setting of correct values at each mouse movement, will the bug disappear? If it does, it means that the matter is in the values of these variables, and you need to look in the event handler to see why they do not get their values when the window is expanded. Well, if everything is normal there, then you need to print the Move() method to find the error.
The bug has disappeared. I made these changes to the CDashboard::OnChartEvent() method:
In order not to constantly load the CDashboard:: Move() method, I added checking for oversize flags in those blocks where the width and height of the chart window are directly changed.
The bug has disappeared. I made these changes to the CDashboard::OnChartEvent() method:
In order not to constantly load the CDashboard:: Move() method, I added checking for oversize flags in those blocks where the width and height of the chart window are directly changed.