Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 289
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

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