Multiline label or text (ObjectSetString)

 

I would like to display data on the chart in several lines. How could I do it without defining a new object for every line? I tried the following:

ObjectSetString(0,"InfoTable",OBJPROP_TEXT,"First line\r\nSecond line\r\nThird line");

...but it displays the string in one line. I've tried both OBJ_LABEL and OBJ_TEXT, but no difference. Any ideas?

Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Types
  • www.mql5.com
Standard Constants, Enumerations and Structures / Objects Constants / Object Types - Documentation on MQL5
 
Okay, so far I realized that Comment() can display multiple lines, but unfortunately it cannot be formatted.
 

i can only for  MQL 4  

look here Fxgenerator block Add Comment Line


 

like this? 

 
That uses Comment(), but thanks!
Documentation on MQL5: Common Functions / Comment
  • www.mql5.com
Common Functions / Comment - Documentation on MQL5
 

Anyone who knows how to do that ?

Of course I know Comment() can be used, but I am searching a (simple) way to format (color, font) a label/text with multiline data.

 

I'm interested in multiline text box also
We really need a multiline text box

For example,
I have too many things to display with comment(), but no formatting, no color, no font

It would probably be super nice to have a text box, multiline,
which will know HTML too
(few tags for formatting, font changing, etc, like in Qt framework)

I thought Rectangle Label is what I needed,
but it seems that Rectangle Label is more like Rectangle Panel,
useful for grouping other objects
am i right? im not sure

 

 

 

I sent a feature request to service desk,
requesting multiline textbox

Also, I wrote the idea to have the multiline textbox aware of minimal HTML (for formatting purposes mostly), like in Qt framework  

 
ifmihai:

I sent a feature request to service desk,
requesting multiline textbox

Also, I wrote the idea to have the multiline textbox aware of minimal HTML (for formatting purposes mostly), like in Qt framework  

+1
 
Support Team 2014.02.19 13:53
Status: Open Closed

Unfortunatelly, we'll not implement requeste features.

 

 

(this was the answer) 

 
ifmihai:
Support Team 2014.02.19 13:53
Status: Open Closed

Unfortunatelly, we'll not implement requeste features.

 

 

(this was the answer) 

:(
 

i use two textbox  to do this job 

time/price and onchartevent

Reason: