Discussion of article "Graphics in DoEasy library (Part 99): Moving an extended graphical object using a single control point"

 

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

 
Thanks!