Solved

Tool Tip Woes...

Posted on 1998-11-06
15
280 Views
Last Modified: 2011-09-20
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
Comment
Question by:lbowers
  • 5
  • 3
  • 3
  • +3
15 Comments
 

Author Comment

by:lbowers
ID: 1443594
Edited text of question
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1443595
There's no way that I know of. vbCRLF doesn't work either...

M

0
 

Author Comment

by:lbowers
ID: 1443596
Edited text of question
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:lbowers
ID: 1443597
I'm not 100% sure it's not possible yet... Thanks though...
0
 
LVL 1

Expert Comment

by:OeilNoir
ID: 1443598
i have not verified anything, but i would still suggest to try chr(13) & chr(10) ... this is just a guess
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1443599
CHR$(13) & CHR$(10) does *NOT* work. This is what vbCRLF is. NEITHER works.

M

0
 

Expert Comment

by:qhenry
ID: 1443600
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
 

Expert Comment

by:qhenry
ID: 1443601
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
 

Author Comment

by:lbowers
ID: 1443602
Doesn't work!
0
 
LVL 9

Accepted Solution

by:
Dalin earned 100 total points
ID: 1443603
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
 
LVL 7

Expert Comment

by:Inteqam
ID: 1443604
try to set the position of the text , according to the coordination of the mouse.

0
 
LVL 7

Expert Comment

by:Inteqam
ID: 1443605
and don't forget to set the multiline property of the text to true.
0
 

Author Comment

by:lbowers
ID: 1443606
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
 
LVL 12

Expert Comment

by:mark2150
ID: 1443607
Watch the X & Y values coming out of the Mouse_Move event. Update your tool tips there.

M

0
 
LVL 7

Expert Comment

by:Inteqam
ID: 2306420
WOW

what happened to this Thread
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question