how to display tool tip text in multiple lines?
Printable View
how to display tool tip text in multiple lines?
I'm not sure about this (only briefly dabbled with tooltips) but I think when you're setting the tooltip text, use the carriage return escape sequence "\n".
Sor for text like...
Tooltip Line 1
Tooltip Line 2
Tooltip Line 3
do...
CString strTooltipText = "Tooltip Line 1\nTooltip Line 2\nTooltip Line 3";
Tooltip.SetText (strTooltipText); // or whatever the method for setting the text...
Hope that works...
Niall
Hi.
Before I try this.
It didn't work.
Does anyone have a good idea?
I heard IE4.0 common control can this?
Regards.
-Masaaki Onishi-
i tried that already. it didn't work. in excel bar charts, we have tool tip that is multiline.
You have to play with SetMaxTipWidth(). If tooltip text exceeds this width, text is broken down into next line. Look at documentation for more details including TTM_SETMAXTIPWIDTH.
Ajay