Discussion of article "Graphics in DoEasy library (Part 100): Making improvements in handling extended standard graphical objects"
MetaQuotes:
Thanks. Very informative.
New article Graphics in DoEasy library (Part 100): Making improvements in handling extended standard graphical objects has been published:
Author: Artyom Trishkin
From me also a big thank you for all your work in that series (100 articles!)

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 100): Making improvements in handling extended standard graphical objects has been published:
In the current article, I will eliminate obvious flaws in simultaneous handling of extended (and standard) graphical objects and form objects on canvas, as well as fix errors detected during the test performed in the previous article. The article concludes this section of the library description.
Compile and launch the EA on the chart:
As we can see, each form object's ZOrder value is equal to zero immediately after the creation but graphical objects are still built "under them". Changes in each object's ZOrder value are performed "in a circle" — no more than the number of form objects on the chart (counting from zero). Any constructed graphical object always appears "below" the GUI objects, and their relative position remains unchanged, which means that they are correctly distributed in the list according to the values of their ZOrder property. Finally, the composite graphical object is now correctly limited to the edges of the screen and is not distorted regardless of the location of its pivot points. Like other graphical objects, it is drawn below the form objects.
Author: Artyom Trishkin