Download MetaTrader 5
To add comments, please log in or register
Any questions regarding MQL5 Cloud Network? FAQ will help you!
Andrei Moraru
1143
Andrei Moraru 2010.07.19 22:29 
Is it possible to fill OBJ_RECTANGLE with color somehow?
Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Types
  • www.mql5.com
Standard Constants, Enumerations and Structures / Objects Constants / Object Types - Documentation on MQL5
Alexey Da
Moderator
6560
Alexey Da 2010.07.20 16:41  

If you enable property "Draw object as background" you'll get it.

 

Andrei Moraru
1143
Andrei Moraru 2010.07.20 19:36  
alexvd:

If you enable property "Draw object as background" you'll get it.

 

I mean from MQL.
Rashid Umarov
Admin
11551
Rashid Umarov 2010.07.20 20:54  
See property OBJPROP_BACK - Object Properties

Andrei Moraru
1143
Andrei Moraru 2010.07.20 21:47  
Rosh:
See property OBJPROP_BACK - Object Properties

Thank you very much! But I suggest marking it more clearly in the help file what this property does. It's quite hard to predict from looking at it that it will fill the rectangle with its color.
gjrexach
59
gjrexach 2011.06.24 02:10  
enivid:
Is it possible to fill OBJ_RECTANGLE with color somehow?

Actually, Setting PROP_BACk to true will not necessarily fill the rectangle in MQL5... The correct property is  OBJPROP_FILL

ex:  ObjectSetInteger (0,"RectangleObject",OBJPROP_FILL, true); 

/
To add comments, please log in or register