Button text moving to the left?
#1
Hi all,

I need some basic help with my skin. I have got a problem with the button when I input the long text as it will make the text to move to the left before it stop.

When I try this:

Code:
<control type="grouplist" id="3001">
            <description>My first group list control</description>
            <posx>12</posx>
            <posy>315</posy>
            <width>1224</width>
            <height>259</height>
            <itemgap>10</itemgap>
            <pagecontrol>7</pagecontrol>
            <orientation>vertical</orientation>
            <usecontrolcoords>false</usecontrolcoords>
            <visible>true</visible>
            <onup>4126</onup>
            <ondown>4126</ondown>
            <onleft>2</onleft>
            <onright>4</onright>

            <!--ROW 1-->
            <control type="button" id="3002">
                <description>Channel Button 1</description>
                <posx>0</posx>
                <posy>0</posy>
                <width>350</width>
                <height>34</height>
                <visible>true</visible>
                <texturefocus>changelang_yellow.png</texturefocus>
                <texturenofocus>channels_bar1.png</texturenofocus>
                <label>hello hello hello hellosafsaf</label>
                <font>Font_Bold25</font>
                <textcolor>0xFFFFFFFF</textcolor>
                <focusedcolor>0xFF000000</focusedcolor>
                <disabledcolor>0xFFFFFFFF</disabledcolor>
                <align>left</align>
                <aligny>top</aligny>
                <pulseonselect>false</pulseonselect>
                <onclick>noop</onclick>
                <onup>1</onup>
                <ondown>3003</ondown>
                <onleft>2</onleft>
                <onright>4</onright>
            </control>
            
            <control type="button" id="3003">
                <description>Channel Button 2</description>
                <posx>0</posx>
                <posy>37</posy>
                <width>350</width>
                <height>34</height>
                <visible>true</visible>
                <texturefocus>changelang_yellow.png</texturefocus>
                <texturenofocus>channels_bar1.png</texturenofocus>
                <label>Hello 2</label>
                <font>Font_Bold25</font>
                <textcolor>0xFFFFFFFF</textcolor>
                <focusedcolor>0xFF000000</focusedcolor>
                <disabledcolor>0xFFFFFFFF</disabledcolor>
                <align>left</align>
                <aligny>center</aligny>
                <pulseonselect>false</pulseonselect>
                <onclick>noop</onclick>
                <onup>3002</onup>
                <ondown>-</ondown>
                <onleft>2</onleft>
                <onright>4</onright>
            </control>
        </control>


It will moving the text to the left before it stop scrolling.

How I can stop the text from moving to the left?
Reply
#2
If adding <scroll>false</scroll> to the button control doesn't work then the only way around this is to hide the label in the button using <font>-</font> and placing a label control over the top of it using Control.GetLabel(ID_OF_BUTTON).
Reply
#3
Thank you very much for your help Hitcher, I can see that <scroll>false</scroll> will only works for the label only.

Do I need to add each label for each button?

How I can set the label posX and pos_Y as the same location as the button?

Here is the one I use:

Code:
<control type="label" id="3001">
                    <description>Channel 1 Program Label 1</description>
                    <posx>10</posx>
                    <posy>10</posy>
                    <width>1</width>
                    <height>34</height>
                    <visible>true</visible>
                    <align>center</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <label>fsdhgsdgsdgsdgdsgsgsdgsdgsgsdg</label>
                    <info>-</info>
                    <number></number>
                    <angle>0</angle>
                    <haspath>false</haspath>
                    <font>Font_Bold25</font>
                    <textcolor>0xFFFFFFFF</textcolor>
                    <focusedcolor>0xFF000000</focusedcolor>
                    <disabledcolor>0xFFFFFFFF</disabledcolor>
                    <wrapmultiline>false</wrapmultiline>
                    <scrollspeed>50</scrollspeed>
                    <scrollsuffix> - </scrollsuffix>
                </control>
<control type="button" id="3002">
                    <description>Channel 1 Program Button 1</description>
                    <posx>0</posx>
                    <posy>50</posy>
                    <width>1</width>
                    <height>34</height>
                    <visible>true</visible>
                    <texturefocus>changelang_yellow.png</texturefocus>
                    <texturenofocus>channels_bar1.png</texturenofocus>
                    <label></label>
                    <font>Font_Bold25</font>
                    <textcolor>0xFFFFFFFF</textcolor>
                    <focusedcolor>0xFF000000</focusedcolor>
                    <disabledcolor>0xFFFFFFFF</disabledcolor>
                    <align>left</align>
                    <aligny>top</aligny>
                    <pulseonselect>false</pulseonselect>
                    <onclick>noop</onclick>
                    <onup>1</onup>
                    <ondown>4403</ondown>
                    <onleft>2</onleft>
                    <onright>4</onright>
                </control>
Reply
#4
Just trail and error.
Reply

Logout Mark Read Team Forum Stats Members Help
Button text moving to the left?0