ObjectSet function on MQL5
-
Hi,
I use some custom MQL code to change the property of some objects on MQL4, but I can't get it to work on MQL5.
For example, I use: ObjectSet(LoadedObjectName(),OBJPROP_BGCOLOR,clrDarkGray); to change the color of a button on MQL4 to Dark Gray, but it doesn't work on MQL5.
I also use ObjectSet(LoadedObjectName(),OBJPROP_STATE,0); to change the state of a button on MQL4. It doesn't work on MQL5.
"ObjectSet" function does not exist on MQL5? What should I change to make it work?
Thanks.
-
ObjectSetInteger(0, LoadedObjectName(), OBJPROP_STATE, 0);
ObjectSetInteger(0, "exactObjectName", OBJPROP_STATE, 0);
-
Thanks miro!!