Download MetaTrader 5
To add comments, please log in or register
How to test a program before buying?
AnkaSoftware
178
AnkaSoftware 2016.09.08 01:34 

Hi,

    For an object of type OBJ_RECTANGLE, am unable to set the fill and tool tip property

            ObjectSetInteger( chartID, objName, OBJPROP_FILL, false );

            ObjectSetString( chartID, objName, OBJPROP_TOOLTIP, callOut );

 

Regards

Vivek 

              

Blahtech Limited
2861
James Cater 2016.09.08 11:18  

You need to use OBJPROCK_BACK on MQL4. They have improved this for MQL5 which treats BACK and FILL differently for RECTANGLE

#ifdef __MQL4__
   ObjectSetInteger(0, name, OBJPROP_BACK, fill);
#else
   ObjectSetInteger(0, name, OBJPROP_BACK, true);
   ObjectSetInteger(0, name, OBJPROP_FILL, fill);
#endif


Tooltips should work

/
To add comments, please log in or register