What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Labels on Preferences Tabs

Labels on Preferences Tabs
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: Labels on Preferences Tabs
This?

JScript code:
var Tabs = {
    "RadSettings":  "Settings",
    "RdiOtherTab":  "Other tab"
    // Etc.
}
 
function LoadTabs(PlusWnd) {
    for(var i in Tabs) {
        for(var e = 1; e <= 4; e++) PlusWnd.Button_SetElementText(i,"TxtSettings" + e,Tabs[i]);
    }
}


It loops through the Tabs object. For each i in the Tabs object, it'll do four loops, setting text to the control with ID i, TxtSettings followed by the number e and the text as specified in the Tabs object. You need to pass a PlusWnd object to the LoadTabs function.

This post was edited on 05-28-2009 at 07:36 PM by SmokingCookie.
05-28-2009 07:35 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Labels on Preferences Tabs - by wincy on 05-28-2009 at 04:58 PM
RE: Labels on Preferences Tabs - by SmokingCookie on 05-28-2009 at 07:35 PM
RE: Labels on Preferences Tabs - by foaly on 05-28-2009 at 08:04 PM
RE: RE: Labels on Preferences Tabs - by SmokingCookie on 05-28-2009 at 08:07 PM
RE: Labels on Preferences Tabs - by wincy on 05-29-2009 at 12:21 PM


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