How do you reset an object's tooltip to its default?

To add comments, please log in or register
MacDougall
34
MacDougall  

Hi,

When hovering over an object you usually see a default tooltip. With vertical lines, for example, it is 3 rows:

1, the object's name,

2, the object's description,

3, the price at which your mouse pointer is intersecting that line.

You can change this with something like:

ObjectSetString(0,object_name,OBJPROP_TOOLTIP,"some text");

You can switch it off completely with a "\n":

ObjectSetString(0,object_name,OBJPROP_TOOLTIP,"\n");

Does anyone know how to switch it back to the original 3 rows please?

I cannot find an answer anywhere. Thanks for any input

William Roeder
20210
William Roeder  
Did you try using NULL instead of "\n" ?
MacDougall
34
MacDougall  
William Roeder:
Did you try using NULL instead of "\n" ?

No, but i have now and it works. Thanks!

To add comments, please log in or register