Results 1 to 9 of 9

Thread: ToolTipText Question

  1. #1

    Thread Starter
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Question ToolTipText Question

    Hmmm.. Guys... Is there a way I can make the tooltip have a line feed instead of getting something like this:

    Hello || My name is Tec-Nico

    Intead I want it to appear like:

    Hello
    My name is Tec-Nico


    So... Is there a way to do this?

    Thanks in advance
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  2. #2
    Hyperactive Member Dmitri K's Avatar
    Join Date
    Sep 2002
    Location
    West Palm Beach, FL
    Posts
    444
    Not in traditional way (Command1.ToolTipText = "hello" & vbNewLine & "world"), but you can create a multiline textbox (or label but with label set borderstyle to fixed single, autosize to true), set it's appearance to flat and backcolor to &H80000018& (tooltip color) and make it act as a tooltiptext. Problem with label is it isn't an object so objects (commandbutton, textbox, etc) will be ontop of the label. There are ways around this problem of course.
    Last edited by Dmitri K; Nov 3rd, 2002 at 04:19 PM.

  3. #3
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    That's C. Here's VB way :

    http://www.andreavb.com/tip050007.html
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  5. #5

    Thread Starter
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192
    I know what you mean, Dmitri K... I have done it before, but I just wanted to know if it could be done with the normal Tooltip... Yet, I am going to download the control provided by James, Well, well, well... Thanks James
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  6. #6
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  7. #7
    Hyperactive Member
    Join Date
    Jul 2002
    Posts
    296
    James, Did you know every title you post is "Well?" Just something I noticed.
    Kevin Carpenter
    Currently Working in the CAOS (CA Operating System) Group

  8. #8
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Originally posted by carp
    James, Did you know every title you post is "Well?" Just something I noticed.
    See my signature...
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  9. #9
    Hyperactive Member
    Join Date
    Jul 2002
    Posts
    296
    ahh, Lol. I do see now. Anywho, on XP that code from the VB link above doesnt work.
    Kevin Carpenter
    Currently Working in the CAOS (CA Operating System) Group

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