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:
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: [Resource] ToolTip Class
Nice work [Image: msn_up.gif]. I might use it in my scripts.
01-07-2007 08:41 AM
Profile E-Mail PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
O.P. RE: [Resource] ToolTip Class
quote:
Originally posted by Mattike
PS: Do we have to register _ToolTip.dll, and if so, do we have to register it in the DotNetFiles or the OleFiles? :P

Neither, it's just a standard dll.
01-07-2007 08:47 AM
Profile PM 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
quote:
Originally posted by Eljay
Neither, it's just a standard dll.
Okay, I just thought it could be necessary and I'd have trouble when I wouldn't register... thanks for telling! :)
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 09:41 AM
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
Does this only work on buttons or can it be on thing like text and check boxes too?
01-08-2007 05:05 PM
Profile E-Mail PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
O.P. RE: [Resource] ToolTip Class
quote:
Originally posted by the andyman
Does this only work on buttons or can it be on thing like text and check boxes too?

Anything.
01-08-2007 05:09 PM
Profile PM 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
quote:
Originally posted by Eljay
Anything.
...that can have a <Help> child, right? :P
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
01-08-2007 05:10 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Resource] ToolTip Class
quote:
Originally posted by Mattike
quote:
Originally posted by Eljay
Anything.
...that can have a <Help> child, right? :P
nope... this class doesn't have anything todo with that (Plus!'s interface <help> tag, which will create a standard tooltip).

This class creates its own tooltip windows and can be used on anything which has a window handle. The class is nice, but in most cases (all?) you don't need a title and icon for a tooltip, so there is no use in using this class if you just want standard normal tooltips.

The class is usefull if you want to add a very big explanation or whatever where using a title and icon makes some sense.

Aka: don't use this class (and mandatory DLL!) for just simply adding a tooltip to some control. It would be extremely overdoing it and bloating your code serisouly (much code in your script in that case for something rather non-functional and which can be done way more easier). In that case use the build in Plus! interface tag <help>.

This post was edited on 07-21-2009 at 03:37 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-08-2007 05:12 PM
Profile PM 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
quote:
Originally posted by CookieRevised
nope... this class doesn't have anything todo with that (Plus!'s interface <help> tag, which will create a real tooltip).

This class creates its own tooltip windows.
Hmm... but it's using the Windows API message "TTM_ADDTOOL" to actually create it, right? Let me check MSDN...

Right, MSDN just says it registers a tooltip for a control, but can it be used on an element too? Like, let's say, can you use TTM_ADDTOOL to create a tooltip for an ImageElement? ^o)

Aargh, I'll STFU! You're right, it can be used on any control whose handle can be returned by PlusWnd.GetControlHandle. I should've analyzed the code better. :P

This post was edited on 01-09-2007 at 05:00 PM 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-08-2007 05:26 PM
Profile E-Mail PM Web Find Quote Report
Flash
Junior Member
**

Avatar
All time Ready

Posts: 86
Reputation: 2
44 / Male / Flag
Joined: Aug 2006
RE: [Resource] ToolTip Class
code:
MyToolTip.Text = "...";
MyToolTip.Icon = TTI_INFO;
MyToolTip.Title = "...".


this work? because i try and that not work

code:
var MyToolTip0 = new ToolTip(MyButton, "Select a picture in this list for associate them to the status.", name, TTI_INFO)
        Debug.Trace("ToolTip: " +MyToolTip0)

that return
code:
ToolTip: [object Object]


This post was edited on 02-24-2007 at 10:52 PM by Flash.
My script: Psdp
02-24-2007 10:51 PM
Profile PM Find Quote Report
Flash
Junior Member
**

Avatar
All time Ready

Posts: 86
Reputation: 2
44 / Male / Flag
Joined: Aug 2006
RE: [Resource] ToolTip Class
ok this plugins work perfectly ;)

just need to update the tooltip after edit them
code:
MyToolTip[0].Text = "You want to set this\npicture to this Ps?"
MyToolTip[0].Title = Wnd.GetControlText("LblName")
MyToolTip[0].UpdateToolTip();

This post was edited on 03-18-2007 at 05:59 PM by Flash.
My script: Psdp
03-18-2007 05:59 PM
Profile PM 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