Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CListCtrl with tool tip to have multiple lines

CListCtrl with tool tip to have multiple lines

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kyle P
    wrote on last edited by
    #1

    We are using the XListCtrl from code project and would like to have multiple lines in a column for tool tips. I have tried \r\n and I have looked at some other information in code project and else where. When a particular row/column has the mouse over it to have a tool tip appear but possible have multiple lines. the lines could be 80+ characters if we could. Could someone point me to a simple and quick solution? thank you

    B 1 Reply Last reply
    0
    • K Kyle P

      We are using the XListCtrl from code project and would like to have multiple lines in a column for tool tips. I have tried \r\n and I have looked at some other information in code project and else where. When a particular row/column has the mouse over it to have a tool tip appear but possible have multiple lines. the lines could be 80+ characters if we could. Could someone point me to a simple and quick solution? thank you

      B Offline
      B Offline
      bob16972
      wrote on last edited by
      #2

      I use "\n" for a newline in balloon tooltips. Not sure if this works for standard but I thought I'd post it in case you hadn't tried it yet. -- modified at 23:54 Monday 29th May, 2006 I just verified that it works for both types of tooltip... m_ToolTip.Create(this,TTS_BALLOON); // Balloon m_ToolTip.Create(this); //for no balloon

      S 1 Reply Last reply
      0
      • B bob16972

        I use "\n" for a newline in balloon tooltips. Not sure if this works for standard but I thought I'd post it in case you hadn't tried it yet. -- modified at 23:54 Monday 29th May, 2006 I just verified that it works for both types of tooltip... m_ToolTip.Create(this,TTS_BALLOON); // Balloon m_ToolTip.Create(this); //for no balloon

        S Offline
        S Offline
        Sarath C
        wrote on last edited by
        #3

        bob16972 wrote:

        Not sure if this works for standard but I thought I'd post it in case you hadn't tried it yet.

        its not working!!! :(( SaRath
        "D on't blindly follow rules you read somewhere without verifying that it makes sense for your situation!"

        B 1 Reply Last reply
        0
        • S Sarath C

          bob16972 wrote:

          Not sure if this works for standard but I thought I'd post it in case you hadn't tried it yet.

          its not working!!! :(( SaRath
          "D on't blindly follow rules you read somewhere without verifying that it makes sense for your situation!"

          B Offline
          B Offline
          bob16972
          wrote on last edited by
          #4

          What does the XListCtrl use for it's tooltips? I would have guessed it used CToolTipCtrl internally but I guess not. Sorry about the misinformation then. That'll teach me to make assumptions. :(

          S 1 Reply Last reply
          0
          • B bob16972

            What does the XListCtrl use for it's tooltips? I would have guessed it used CToolTipCtrl internally but I guess not. Sorry about the misinformation then. That'll teach me to make assumptions. :(

            S Offline
            S Offline
            Sarath C
            wrote on last edited by
            #5

            bob16972 wrote:

            What does the XListCtrl use for it's tooltips?

            In XListCtrl too it has normal tool tip, ther is no tool wrapped text inside the tooltip. I have tried in XListCtrl too by putting "\n" and "\r\n" to make the text wrap. but I failed to do that :( SaRath
            "D on't blindly follow rules you read somewhere without verifying that it makes sense for your situation!"

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups