What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Resource] ToolTip Class (Updated: 14/08/07)

Pages: (4): « First [ 1 ] 2 3 4 » Last »
[Resource] ToolTip Class (Updated: 14/08/07)
Author: Message:
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
O.P. [Resource] ToolTip Class (Updated: 14/08/07)
ToolTip Class 2.0
Now: Without a dll!

Well, I finally got around to updating this, with a little nagging from Mattike :P


Change log:

Only two noticable differences from the first version:
  • No more _ToolTip.dll! - Thanks to Patchou changing the number of parameters allowed with Interop.Call from 9 to 12, I no longer need to use a dll to create the tooltip window!
  • ToolTip.Destroy(); - Just a new function that "does what it says on the tin", destroys the tooltip!

Example Usage:
code:
// Create your window.
var MyWindow = MsgPlus.CreateWnd('MyWindow.xml', 'MyWindow');
// Get a handle to the button
var MyButton = MyWindow.GetControlHandle("ExampleButton");
// Create the ToolTip window
var MyToolTip = new ToolTip(MyButton, "Text on tooltip", "ToolTip Title", TTI_INFO);

// Update the title of the tooltip
MyToolTip.Title = "New ToolTip Title";
MyToolTip.UpdateToolTip();


[Image: ToolTipExample.gif]


List of icon constants:
  • TTI_NONE
  • TTI_INFO
  • TTI_WARNING
  • TTI_ERROR
  • TTI_INFO_LARGE
  • TTI_WARNING_LARGE
  • TTI_ERROR_LARGE
  • Any HICON aquired through LoadIcon

Download ToolTip Class now!

.zip File Attachment: _ToolTip.zip (1.44 KB)
This file has been downloaded 397 time(s).

This post was edited on 08-14-2007 at 04:04 PM by Eljay.
01-06-2007 06:18 PM
Profile PM Find Quote Report
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: [Resource] ToolTip Class
Good stuff, working perfectly :).
[Image: sig.png]
01-06-2007 06:25 PM
Profile PM Web Find Quote Report
Thor
Veteran Member
*****

Avatar
Awwwwwwww.

Posts: 1118
Reputation: 42
32 / – / Flag
Joined: May 2006
RE: [Resource] ToolTip Class
Looks good, don't have the time to test it :P

But yes, it looks really good. (Y) A nice resource.


(Btw, there should have been it's own resource page at msgpluslive.net for developers :))
:plus4: Translation guidelines for Messenger Plus! Live
I'm no longer around this town, but I miss the community dearly. You can always find me lurking in #banana, or at
nitrolinken.net.
01-06-2007 06:25 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Resource] ToolTip Class
Good job!
01-06-2007 06:26 PM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: [Resource] ToolTip Class
quote:
Originally posted by Nitro

(Btw, there should have been it's own resource page at msgpluslive.net for developers :))
this is the sort of thing I'm going to put on mpscripts.net
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
01-06-2007 06:32 PM
Profile E-Mail PM Web Find Quote Report
the andyman
Junior Member
**

Avatar
Windows Live Fanatic

Posts: 92
Reputation: 4
– / Male / Flag
Joined: Apr 2005
RE: [Resource] ToolTip Class
Good work. I'm sure I'll be using this in the future :P
01-06-2007 06:49 PM
Profile E-Mail PM Web Find Quote Report
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: [Resource] ToolTip Class
Submit it here : http://www.msgpluslive.net/scripts/browse/9/Others/ ?
[Image: sig.png]
01-06-2007 07:33 PM
Profile PM Web Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: [Resource] ToolTip Class
Looks good (y)
01-06-2007 10:03 PM
Profile PM Find Quote Report
Chestah
Veteran Member
*****

Avatar

Posts: 1658
Reputation: 34
36 / Male / –
Joined: Jun 2004
RE: [Resource] ToolTip Class
Nice work eljay - i might use this in some of my scripts! Thanks for the explanation too - unfortunately you missed a bit. How do i extract the files out of the zip file :P
Segosa is newb.
01-06-2007 10:46 PM
Profile E-Mail PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [Resource] ToolTip Class
Damned... I'm trying to let my interface XML's change their tooltips to make my script multilingual and then you have to do this... :'(

Naah, great work! I'm definitely going to use it! :)

PS: Do we have to register _ToolTip.dll, and if so, do we have to register it in the DotNetFiles or the OleFiles? :P

This post was edited on 01-07-2007 at 08:40 AM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
01-07-2007 08:34 AM
Profile E-Mail PM Web Find Quote Report
Pages: (4): « First [ 1 ] 2 3 4 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On