Custom tooltip size

 

Hello,

What is the custom tooltip size in MT5? Is it smaller, than in MT4? Is it adjustable? After custom indicator was converted from mql4 to mql5, not all info is displaying in tooltip.

 

I mean the size of the text of a tooltip, set by

ObjectSetString(chart_id, object_name, OBJPROP_TOOLTIP, "text");

function.

 
I believe it is hard-coded on both platforms but there doesn't seem to be any available information of that size is.
 
It seems, that for a single line size is almost the same between MT4 and MT5 (160 and 159 symbols), but in multi line mode size in MT4 is 255 symbols, while in MT5 it's only 169 symbols.
 

Comparison example.

In MT4 this custom tooltip text will be fully displayed:

   string tooltip = "dsvdsvdsvvdsdvssvddsvsdvsdvdvdsvdsvdsvsddsvsdvsdvd\n"+
                    "dsvsdvvsdkjnsdkjndsvsddsvvdsvkjsdnkjdvnvdskj\n"+
                    "dsvsdvvsdkjnsadvavdadvadvdkjnvkjsdnkjdvnvdskj\n"+
                    "dsvsdvvsdkjnsa123vdadvadvdkjnvkjsdnkjdvnvdskj\n"+
                    "dsvsdvvsdkjnsa123vdadvadvdkjnvkjsdnkjdvnvdskj\n"+
                    "1654461654184915618949811";

But in MT5 it will not.

 
Andrei Iakovlev #:

Comparison example.

In MT4 this custom tooltip text will be fully displayed:

But in MT5 it will not.

i have this problem too can you solve this?
 

Would also definitely like a definitive answer to this matter.

In MT5, is there a way to set an object tooltip of, say, 500 characters over multiple lines, for example?

Ideally, if there is to be a string size limit for tooltips, it should be at least 512 characters, although more would also be welcome.

Thanks.