Order of graphical objects ...

 

Hello I have a question for mql5 language regarding overlapping Objects.

If I make for example an indicator with with four graphical Object (for example rectangles) that are all overlapping in one or more points. How can bring a specific rectangle to the front (or make it second or third) during the program runs.

Regards

Klaus

 
OBJPROP_BACK = 0

OBJPROP_BACK

Object in the background

bool


https://www.mql5.com/en/docs/constants/objectconstants/enum_object_property#enum_object_property_integer


Assign the value with:

ObjectSetInteger(...

And the last object you create will be the one placed most up front in case of overlap.

Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Objects Constants / Object Properties - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: