But in ObjectSetText() function???

 
<oops - the topic is supposed to say "Bug in ObjectSetText() Function" -LOL>

Hello,

It seems that regardless of what I set the 5th parameter of the ObjectSetText() function to, it always shows white text.

Example, where the variable PivotColor = Green, this has a green line but always white text:

      ObjectCreate("PV",OBJ_HLINE,0,0,pivot);
          ObjectSet("PV",OBJPROP_COLOR,PivotColor); 
          ObjectSet("PV",OBJPROP_STYLE,PivotStyle);
          ObjectSetText("PV","Pivot(D)",6,"Arial",PivotColor); 



This line also makes white text

          ObjectSetText("PV","Pivot(D)",6,"Arial",Green); 



Am I doing something wrong or is this a bug?

Thanks, hope this is helpful!

 
Font, size and color can be set for Text and Label objects only.
Complete MetaEditor dictionary coming soon
Reason: