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. RE: [Resource] ToolTip Class
Yeh I kind of forgot to mention that in the first post, I've added it now thanks for pointing it out. :)
03-18-2007 09:00 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
I'm having a problem with the class. When I try to use UpdateToolTip, it doesn't update the text. The title and icon get updated succesfully, but the text doesn't change. Could someone help me?
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
08-10-2007 04:48 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 (Updated: 14/08/07)
Finally updated this, see first post for details.

Please confirm that UpdateToolTip works properly now Mattike :P
08-14-2007 04:06 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 (Updated: 14/08/07)
Many many many thanks for this, Eljay! :D
Works great, and the UpdateToolTip() finally functions properly. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
08-14-2007 04:15 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 (Updated: 14/08/07)
hum allo? I can do this to work?
MyToolTip.Text() = MyToolTip.Text+ '\n'+Text;


i think in find a bug, hold your mouse on the button and the tooltip desapear for all time.



quote:
Originally posted by Flash
hum allo? I can do this to work?
MyToolTip.Text() = MyToolTip.Text()+ '\n'+Text;

http://www.gamedev.net/community/forums/topic.asp?topic_id=107920
that say we can use GETTEXT for get the text tooltip

This post was edited on 09-13-2007 at 03:52 AM by WDZ.
My script: Psdp
09-13-2007 02:43 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 (Updated: 14/08/07)
You're doing it wrong. :P
code:
var MyToolTip = new Tooltip(...) //Just to make sure you know that MyToolTip is a ToolTip class. :P
//MyToolTip::Text is a property of the type String, so you don't need the brackets there. Besides, you can't place function calls on the left side anyway!!!
//So here are 2 ways to do it, a "long" method and a "short" one. :)

MyToolTip.Text = MyToolTip.Text + "\n" + Text; //Method 1
MyToolTip.Text += "\n" + Text; //Method 2
//And finally, you need to call UpdateToolTip to update the tooltip. ;)
MyToolTip.UpdateToolTip();
//That's it! :P

Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
09-13-2007 03: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 (Updated: 14/08/07)
quote:
Originally posted by Mattike
You're doing it wrong. :P
code:
var MyToolTip = new Tooltip(...) //Just to make sure you know that MyToolTip is a ToolTip class. :P
//MyToolTip::Text is a property of the type String, so you don't need the brackets there. Besides, you can't place function calls on the left side anyway!!!
//So here are 2 ways to do it, a "long" method and a "short" one. :)

MyToolTip.Text = MyToolTip.Text + "\n" + Text; //Method 1
MyToolTip.Text += "\n" + Text; //Method 2
//And finally, you need to call UpdateToolTip to update the tooltip. ;)
MyToolTip.UpdateToolTip();
//That's it! :P


ok thx that work fine now, but u see my little bug?
My script: Psdp
09-14-2007 09:46 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Resource] ToolTip Class (Updated: 14/08/07)
quote:
Originally posted by Flash

ok thx that work fine now, but u see my little bug?
It's not a bug when you are doing it wrong.
09-14-2007 11:16 AM
Profile E-Mail 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 (Updated: 14/08/07)
quote:
Originally posted by matty
quote:
Originally posted by Flash

ok thx that work fine now, but u see my little bug?
It's not a bug when you are doing it wrong.
what is wrong in that HUH?
code:
var MyToolTip = new Array()
function CrtToolTip(w,id,Text) {
    var b = w.GetControlHandle(id);
    if (MyToolTip[b] == null) {
        MyToolTip[b] = new ToolTip(b,"Save every setting and Quit.\nChange(s):\n" +Text, "Save&Quit", TTI_INFO);
    }
    else {
        MyToolTip[b].Text += '\n'+Text;
        MyToolTip[b].UpdateToolTip();
    }
}


if i hold my mouse on the button 10 secondes, the tip desapear and i try to repass my mouse on the button but nothing Appear so i need to recreate the tip.

Its a bad setting whit your variable?

This post was edited on 09-14-2007 at 11:03 PM by Flash.
My script: Psdp
09-14-2007 10:52 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 (Updated: 14/08/07)
hum hello? i find a real bug pls repond me how to change this.

i dont want to create a timer for recreate the Tip :|
My script: Psdp
09-16-2007 12:11 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