CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Location
    WA, USA
    Posts
    15

    tooltip multiline

    how to display tool tip text in multiple lines?


  2. #2
    Join Date
    May 1999
    Posts
    5

    Re: tooltip multiline

    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


  3. #3
    Join Date
    May 1999
    Location
    Atlanta, GA, USA
    Posts
    443

    Re: Actaully it didn't work.

    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-


  4. #4
    Join Date
    Apr 1999
    Location
    WA, USA
    Posts
    15

    Re: tooltip multiline

    i tried that already. it didn't work. in excel bar charts, we have tool tip that is multiline.



  5. #5
    Join Date
    Apr 1999
    Posts
    12

    Re: tooltip 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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured