Click to See Complete Forum and Search --> : tooltip multiline


Mallik Bulusu
April 8th, 1999, 07:39 PM
how to display tool tip text in multiple lines?

Niall Bryan
April 8th, 1999, 11:53 PM
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

Masaaki
April 9th, 1999, 12:23 AM
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-

Mallik Bulusu
April 9th, 1999, 12:39 AM
i tried that already. it didn't work. in excel bar charts, we have tool tip that is multiline.

Ajay Kalra
April 9th, 1999, 01:36 AM
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