Multiline label or text (ObjectSetString)

To add comments, please log in or register
balazs321
108
balazs321  

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
balazs321
108
balazs321  
Okay, so far I realized that Comment() can display multiple lines, but unfortunately it cannot be formatted.
FinGeR
7192
FinGeR  

i can only for  MQL 4  

look here Fxgenerator block Add Comment Line


 

like this? 

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

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.

Florin Ionesko
933
Florin Ionesko  

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

 

 

Florin Ionesko
933
Florin Ionesko  

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  

Alain Verleyen
36128
Alain Verleyen  
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
Florin Ionesko
933
Florin Ionesko  
Support Team 2014.02.19 13:53
Status: Open Closed

Unfortunatelly, we'll not implement requeste features.

 

 

(this was the answer) 

Jinsong Zhang
19869
Jinsong Zhang  
ifmihai:
Support Team 2014.02.19 13:53
Status: Open Closed

Unfortunatelly, we'll not implement requeste features.

 

 

(this was the answer) 

:(
kuolung1967
56
kuolung1967  

i use two textbox  to do this job 

time/price and onchartevent

To add comments, please log in or register