Important alert: (current site time 7/16/2013 3:10:19 AM EDT)
 

winzip icon

Awesome Tooltips All API!!!

Email
Submitted on: 10/25/2001 6:55:05 PM
By: eidos 
Level: Intermediate
User Rating: By 63 Users
Compatibility: VB 5.0, VB 6.0
Views: 45388
(About the author)
 
     This is a wrapper class for the comctl32 api, it allows you to create AWESOME tooltips --> they can be multiline, any background color, foreground color, balloon style, icons like only thought possible for windows ME, they look GOOD. to use balloon style requires IE5 +

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :Awesome Tooltips All API!!!
'**************************************
see code
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 5 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
10/25/2001 9:13:11 PMRoy

Excellent !!! 5 from here
(If this comment was disrespectful, please report it.)

 
10/25/2001 9:15:55 PMJing Polito

Please put some comments on your code.

(If this comment was disrespectful, please report it.)

 
10/25/2001 9:25:38 PMJC

Does it work with Win2k?
(If this comment was disrespectful, please report it.)

 
10/25/2001 10:44:30 PMDoctor Evil

Yes, it does work in 2000.

How do you get a baloon to pop up without any mouse actions? (Like when a baloon pops up from a tray icon)
(If this comment was disrespectful, please report it.)

 
10/26/2001 12:40:21 AMHussain Al-Khalaf

Whow, My brain = good idia, let's work from now
5\5
(If this comment was disrespectful, please report it.)

 
10/26/2001 3:19:54 AMAlan Bates

Will not run at all. Keep getting errors with most of property lets/gets etc. I am running it on Win NT/SP5 + VB6/SP5 + I.E5.5. Please resubmit a version that will at least compile!!!!!!!
(If this comment was disrespectful, please report it.)

 
10/26/2001 7:02:39 AMNiknak

Worked perfectly, Its nice when people submit useful stuff like this!
(If this comment was disrespectful, please report it.)

 
10/26/2001 4:28:24 PMNick123

Great!! Do you have any idea how you can put links in tool tip like ICQ does? And how about having elliptical shape of tool tip window ? Please let me know. thank you
(If this comment was disrespectful, please report it.)

 
10/26/2001 5:44:40 PMNew iSoft

Awsome! 5 from me!!! How do u do show it with out the mouse?
(If this comment was disrespectful, please report it.)

 
10/27/2001 8:19:04 PMChuck Bradley

Good Job, Lad!
Loaded into VB6 Enterprise Ed. SP5 on W2k, compiled and took off no problem.
(If this comment was disrespectful, please report it.)

 
10/30/2001 8:44:50 PMCYBORG

Is it possible to make this technique into *.ocx ?
(If this comment was disrespectful, please report it.)

 
11/22/2001 10:45:46 AMicleprechauns

i've seen this code at least 3 times, once in OCX form. Did you steal this code, or start from scrath?
(If this comment was disrespectful, please report it.)

 
11/22/2001 10:47:26 AMYusuf Simonson

alright, i've just downloaded it. I've seen this exact code before.
(If this comment was disrespectful, please report it.)

 
11/30/2001 5:59:58 AMNIS

Hello Again! Ummm... I found some code in c++ that does place tool tips so they come up on demand. If some one wants to change it to vb and post it here that would be great! The address is http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/CommCt ls/ToolTip/UsingTooltips.asp
(If this comment was disrespectful, please report it.)

 
12/10/2001 3:03:45 AMVBRider

Won't run under Windows XP
No errors, just the tooltip doesn't display. Anyone know what changes would be required to get Win XP to run it?
(If this comment was disrespectful, please report it.)

 
12/13/2001 1:13:02 PMJohn Galanopoulos

a goldie! kewl pal! 5!!
(If this comment was disrespectful, please report it.)

 
12/29/2001 10:23:30 AMSassyboy

is there a way to make it get smaller if the string is to long?
(If this comment was disrespectful, please report it.)

 
12/31/2001 2:21:35 AMMaxwolf

This code is hard to use in a large program that you might be making. I only got it to work for one thing at a time and that was it...mouseover does not work with it, tried several diffrent ways but always ended up in the same problem. It does not support labels and some other important controls that it should.

This code could use improving yes, so I give it a 4, but a great idea...just needs work.
(If this comment was disrespectful, please report it.)

 
1/13/2002 7:51:00 PMgnap

when I try to compile in vb6.0 win2000, i get an error here:

Public Property Get Style() As ttStyleEnum
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.Style
Set Style = mvarStyle
End Property

The set style statement is highlighted & the error message is "Object required." Any idea why?
(If this comment was disrespectful, please report it.)

 
1/14/2002 9:50:04 AMAndy Matteson

Excellent, but how do I make this tooltip for the taskbar, like when i hover over the taskbar button for my application, I just get a basic tooltip. How would I make a "Cooltip" for my taskbar button?
(If this comment was disrespectful, please report it.)

 
3/14/2002 11:57:04 AMBruce Kellerman

The errors are due to the 'Set' (they aren't objects, they are enumerations where they fail). Remove the Set statement.

Also, one of the local string variables was missing in the tooltip.cls that needs to be added, then it will compile.

The similar code I've seen didn't show how to add icons, which is a nice touch.
(If this comment was disrespectful, please report it.)

 
3/14/2002 7:15:34 PMAldo Vargas

Superb class!!! Cool for professional looking programs.
(If this comment was disrespectful, please report it.)

 
3/18/2002 5:21:02 AMThomas Krojer

hi, there are 3 errors in the class.

first: the declare of mvartiptext was missing. add this:

Private mvarTipText As String ' error 1

second: instead of:
Set Style = mvarStyle
you should write:
Style = mvarStyle

and third:
Set Icon = mvarIcon
change to
Icon = mvarIcon

after this changes it was possible to compile this code.

bye, thomas
(If this comment was disrespectful, please report it.)

 
3/29/2002 10:57:38 PMNikon

First: great code
Second: made the changes and yes it compiles but the tooltips don't work then ?? in vb6 it works after the compile the exe don't work ?? please help

i'm on a win2k, vb6 sp5
(If this comment was disrespectful, please report it.)

 
4/3/2002 12:27:26 PMAlmar Joling

Doesn't work for me on VB6 latest SP's, Win2k latest SP's... I've removed all bugs, but still no tooltips. This looked like a nice alternative t oget multilined tooltips, shame it doesn't work. Anyway, thanks for sharing it. It works for a lot of people!
(If this comment was disrespectful, please report it.)

 
4/28/2002 10:31:22 PMThnder

Works for me on win98 5 globes weeeee
(If this comment was disrespectful, please report it.)

 
5/12/2002 10:23:59 AMRoberto Alessi

Very nice code, but the tooltip doesn't
appear on a disabled control (useful for advice to user because the control is disabled ) : any way to do it ?
(If this comment was disrespectful, please report it.)

 
7/6/2002 6:48:45 PMFredJust

see this

http://perso.wanadoo.fr/vbfrood/english/projects/tooltips.htm
(If this comment was disrespectful, please report it.)

 
2/6/2003 2:52:28 AMMichael Manning

This code works on xp for me. Also, how do you make this work for a systray popup?
(If this comment was disrespectful, please report it.)

 
3/30/2003 4:05:53 AM

Yes it has bugs as listed above - I wonder why its not reposted - without the bugs!!
(If this comment was disrespectful, please report it.)

 
1/11/2004 8:03:38 AM

its not re-posted without bugs cozz he doesnt giv a s**t about it n e more. dont complain bout stuff u got 4 free. gj i like =P
(If this comment was disrespectful, please report it.)

 
2/13/2005 11:24:15 PMRob Crombie


Here is a link to one that has no bugs -
http://www.a1vbcode.com/app.asp?ID=2302
It can be used with controls that lack a HWND as well.

And this is a link to a similar one (same author 10Tec), for using with ListView.
http://www.a1vbcode.com/app.asp?ID=2282

They appear to do everything you could ask for.
Some on PSC have too long a delay, before showing.
This one can be re-set (EG 200 is my recommendation).

I have only 2 extra desires -
Get past the limit of 10 secs viewing time.
Allow use of a fixed width font (eg Courier).
I prefer the latter when using it on grid cells, as the data is dynamic, and I may be trying to line up the data in the multi-line tooltip.

Rob
robhp@iprimus.com.au
(If this comment was disrespectful, please report it.)

 
11/11/2005 4:59:42 AMC.Naguib

Excellent !!! 5 from here
(If this comment was disrespectful, please report it.)

 
1/10/2007 12:14:02 PMbehnam

sd
(If this comment was disrespectful, please report it.)

 
10/2/2010 11:34:53 AMMark A.

Excelent code.
Is there any way to also use this with labels (Label1), image boxes (Image1) and shape objects (Shape1) ?
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.