Solved

Tool Tip Woes...

Posted on 1998-11-06
15
283 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses
Course of the Month3 days, 14 hours left to enroll

630 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