Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • Last Modified:

Tool Tip Woes...

Is it possible to make multi line tool tips (as apposed to single line ones) ???
I need to have a tool tip with three (3) lines of information whenever the mouse is moved over a command button.

I've tried using the obvious chr$(13) and it doesn't work.

I.e.

+-----------------+
| Line 1           |
| Line 2           |
| Line 3           |
+-----------------+

Thanks.
0
lbowers
Asked:
lbowers
  • 5
  • 3
  • 3
  • +3
1 Solution
 
lbowersAuthor Commented:
Edited text of question
0
 
mark2150Commented:
There's no way that I know of. vbCRLF doesn't work either...

M

0
 
lbowersAuthor Commented:
Edited text of question
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
lbowersAuthor Commented:
I'm not 100% sure it's not possible yet... Thanks though...
0
 
OeilNoirCommented:
i have not verified anything, but i would still suggest to try chr(13) & chr(10) ... this is just a guess
0
 
mark2150Commented:
CHR$(13) & CHR$(10) does *NOT* work. This is what vbCRLF is. NEITHER works.

M

0
 
qhenryCommented:
Sounds like you should be looking at WhatsThisHelp rather than ToolTips. Then your usr has the option to not see then help until it's needed.
0
 
qhenryCommented:
Sounds like you should be looking at WhatsThisHelp rather than ToolTips. Then your usr has the option to not see then help until it's needed.
0
 
lbowersAuthor Commented:
Doesn't work!
0
 
DalinCommented:
You need to make your own tool tip.

Drop a lebel in the form, name it to llblTooltip,  set visible to false.

On the mouse move of the control,  add code:
lblTooltip.caption = "Line One" & CHR(13) & Chr(10) & "line2"...
lblToolTip.Visible = true

You need to set the position of the lebal tool.
This is the ideal.

You can put the tooltip text in each control's tag, and make a fuction to pass the name of the control. Then in the control's mouse move event, call the function.

Let me know if you need more help.
Regards
Dalin



l
0
 
InteqamCommented:
try to set the position of the text , according to the coordination of the mouse.

0
 
InteqamCommented:
and don't forget to set the multiline property of the text to true.
0
 
lbowersAuthor Commented:
Thanks - I've decided to take that approach.

What's the best method for returning the mouse position though ?
I'm using the GetCursorPos, but it's giving varying result on different machines!
Anyone have an algorithm to accurately return the X and Y coords of the mouse ?
0
 
mark2150Commented:
Watch the X & Y values coming out of the Mouse_Move event. Update your tool tips there.

M

0
 
InteqamCommented:
WOW

what happened to this Thread
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 3
  • 3
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now