Discussion of article "Graphics in DoEasy library (Part 73): Form object of a graphical element"

 

New article Graphics in DoEasy Library (Part 73): Form object of a graphical element has been published:

The article opens up a new large section of the library for working with graphics. In the current article, I will create the mouse status object, the base object of all graphical elements and the class of the form object of the library graphical elements.

Compile the EA and launch it on a symbol chart:


As we can see, the status of the buttons and the cursor is displayed correctly. The form object moves only when grabbed by the mouse within its active area.

When clicking the right and middle mouse buttons within the form, the context menu and the Crosshair tool are not activated. Here we face a funny glitch: if we enable the Crosshair tool outside the window and then hover with it (with the left mouse button pressed) over the active area of the form, it starts to shift. This is an incorrect behavior. But this is only the beginning. I will make improvements and add the new functionality to the form object in subsequent articles.

Author: Artyom Trishkin

Reason: