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:
wincy
Junior Member
**


Posts: 67
Reputation: 4
34 / Male / Flag
Joined: Feb 2008
O.P. Labels on Preferences Tabs
Hello, i have this code:

<Control xsi:type="RadioControl" Id="RadSettings">
    <Position Top="8" Width="82" Left="10" Height="18"/>
    <Attributes><IsNewGroup>true</IsNewGroup></Attributes>
    <CustomLook>
        <FocusRect>
            <Left>2</Left><Top>0</Top><Right>2</Right><Bottom>0</Bottom>
        </FocusRect>
        <Base/>

        <Normal>
            <Unchecked>
                <Element xsi:type="ImageElement" Id="ImgGnral">
                    <Position Top="0" Left="0"/>
                    <Image><Name>preferences_top_tabs_off_color</Name></Image>
                    <Colorization Enable="true"><Color><BaseColor/></Color></Colorization>
                </Element>
                <Element xsi:type="TextElement" Id="TxtSettings1">
                    <Position Top="4" Left="9"/><Font><Size>9</Size></Font>
                </Element>
            </Unchecked>
            <Checked>
                <Element xsi:type="ImageElement" Id="ImgGnral2">
                    <Position Top="0" Left="0"/>
                    <Image><Name>preferences_top_tabs_on_bw</Name></Image>
                </Element>
                <Element xsi:type="ImageElement" Id="ImgGnral">
                    <Position Top="0" Left="0"/>
                    <Image><Name>preferences_top_tabs_on_color</Name></Image>
                    <Colorization Enable="true"><Color><BaseColor/></Color></Colorization>
                </Element>
                <Element xsi:type="TextElement" Id="TxtSettings2">
                    <Position Top="4" Left="8"/><Font><Size>9</Size><Bold>true</Bold></Font>
                </Element>
            </Checked>

        </Normal>
        <Hot>
            <Unchecked>
                <Element xsi:type="ImageElement" Id="ImgGnral">
                    <Position Top="0" Left="0"/>
                    <Image><Name>preferences_top_tabs_hover_color</Name></Image>
                    <Colorization Enable="true"><Color><BaseColor/></Color></Colorization>
                </Element>
                <Element xsi:type="TextElement" Id="TxtSettings3">
                    <Position Top="4" Left="9"/><Font><Size>9</Size></Font><Text>Settings</Text>
                </Element>
            </Unchecked>
            <Checked>
                <Element xsi:type="ImageElement" Id="ImgGnral2">
                    <Position Top="0" Left="0"/>
                    <Image><Name>preferences_top_tabs_on_bw</Name></Image>
                </Element>
                <Element xsi:type="ImageElement" Id="ImgGnral">
                    <Position Top="0" Left="0"/>
                    <Image><Name>preferences_top_tabs_on_color</Name></Image>
                    <Colorization Enable="true">
                    <Color><BaseColor><Transparency>180</Transparency></BaseColor></Color>
                    </Colorization>
                </Element>
                <Element xsi:type="TextElement" Id="TxtSettings4">
                    <Position Top="4" Left="8"/><Font><Size>9</Size><Bold>true</Bold></Font>
                </Element>
            </Checked>
        </Hot>

        <Pushed>
            <Unchecked>
                <Element xsi:type="ImageElement" Id="ImgGnral2">
                    <Position Top="0" Left="0"/>
                    <Image><Name>preferences_top_tabs_on_bw</Name></Image>
                    <Transparency>100</Transparency>
                </Element>
                <Element xsi:type="ImageElement" Id="ImgGnral">
                    <Position Top="0" Left="0"/>
                    <Image><Name>preferences_top_tabs_on_color</Name></Image>
                    <Colorization Enable="true"><Color><BaseColor/></Color></Colorization>
                </Element>
                <Element xsi:type="TextElement" Id="TxtSettings5">
                    <Position Top="4" Left="9"/><Font><Size>9</Size></Font>
                </Element>
            </Unchecked>
            <Checked>
                <Element xsi:type="ImageElement" Id="ImgGnral2">
                    <Position Top="0" Left="0"/>
                    <Image><Name>preferences_top_tabs_on_bw</Name></Image>
                    <Transparency>100</Transparency>
                </Element>
                <Element xsi:type="ImageElement" Id="ImgGnral">
                    <Position Top="0" Left="0"/>
                    <Image><Name>preferences_top_tabs_on_color</Name></Image>
                    <Colorization Enable="true"><Color><BaseColor/></Color></Colorization>
                </Element>
                <Element xsi:type="TextElement" Id="TxtSettings6">
                    <Position Top="4" Left="8"/><Font><Size>9</Size><Bold>true</Bold></Font>
                </Element>
            </Checked>
        </Pushed>
    </CustomLook>
</Control>


like in MP!L's Preferences Panel (Top Tabs).
Is there a way to give the same text to all TextElements instead of using
Wnd.Button_SetElementText("RadSettings", "TxtSettings1", "label")
Wnd.Button_SetElementText("RadSettings", "TxtSettings2", "label");
Wnd.Button_SetElementText("RadSettings", "TxtSettings3", "label");
Wnd.Button_SetElementText("RadSettings", "TxtSettings4", "label");...ecc

I'm not looking for a loop or "for(x in RadSettings...exx", i would like to make only one label for each tab. Is it possible?

Thanks in advance :)
05-28-2009 04:58 PM
Profile E-Mail 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