Is there a way to customize comment() in mql4?
Is there a way to customize comment() in mql4?
Loading saved threads...
Stephen Nidea · External communityPost link
External question — Stack Overflow Stack Exchange
Author: Stephen Nidea
Original post: https://stackoverflow.com/questions/66730343
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
is there a way to customize the color/font/size of comment() function in mql4???.
because the text is too small. I want to be more creative in this part. Thank you in adavance.
Quote
Report
PaulB · External communityPost link
External answer — Stack Overflow Stack Exchange
Author: PaulB
Original post: https://stackoverflow.com/a/66760294
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
Comment is only text. You can use objects to set text and change most attributes.
Example:
string id="ObjectName";
ObjectCreate (0, id, OBJ_LABEL, 0, 0, 0);
ObjectSet (id, OBJPROP_CORNER, 0);
ObjectSet (id, OBJPROP_XDISTANCE, 10);
ObjectSet (id, OBJPROP_YDISTANCE, 10);
ObjectSetText (id, "Text", 10, "Arial", clrRed);
Quote
Report
Post Reply
Checking account access…