Solved

Tool Tip Woes...

Posted on 1998-11-06
15
277 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

919 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now