Discussion of article "Graphics in DoEasy library (Part 99): Moving an extended graphical object using a single control point"
Thanks!
MetaQuotes:
You are welcome
New article Graphics in DoEasy library (Part 99): Moving an extended graphical object using a single control point has been published:
Author: Artyom Trishkin
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
New article Graphics in DoEasy library (Part 99): Moving an extended graphical object using a single control point has been published:
In the previous article, I implemented the ability to move pivot points of an extended graphical object using control forms. Now I am going to implement the ability to move a composite graphical object using a single graphical object control point (form).
Currently, if we hover the mouse over the form for managing a graphical object pivot point, a point appears on it. The point is removed only after the cursor leaves the form. But if we bring all the control points of the object closer so that the forms built at the ends of the graphical object and the central form begin to overlap each other, then moving the cursor away from one form causes the cursor to move to another form located nearby. Thus, we can make so that all points on all object forms are displayed:
If we grab the form and start moving it, the object pivot point starts moving as well. Forms that are visible due to an error remain where they were before the relocation started. This behavior is incorrect. Therefore, we need the method drawing a point on one graphical object form object and deleting points on other form objects of the same object simultaneously.
Author: Artyom Trishkin