OBJ_RECTANGLE properties OBJPROP_FILL and OBJPROP_TOOLTIP

Back to topics list To post a new topic, please log in or register
avatar
35
AnkaSoftware 2016.09.08 03: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 

              

avatar
66
jamescater 2016.09.08 13: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

Back to topics list  

To add comments, please log in or register