Condition to animate label when change focus on itemlayout
#1
Hi, I have simple list and label with animation outside the list. I want start animation from the beginning for each item on list.


Code:
<control type="list" id="724">
    <left>340</left>
    <top>410</top>
    <width>480</width>
    <height>240</height>
    <onleft>2</onleft>
    <onright>60</onright>
    <onup>724</onup>
    <ondown>724</ondown>
    <viewtype label="Lowlist">list</viewtype>
    <pagecontrol>60</pagecontrol>
    <scrolltime>200</scrolltime>
    <visible>Container.Content(Movies)</visible>
    <itemlayout height="40" width="480">
        <control type="label">
            <left>5</left>
            <top>0</top>
            <width>390</width>
            <height>40</height>
            <font>font13</font>
            <textcolor>grey2</textcolor>
            <selectedcolor>selected</selectedcolor>
            <align>left</align>
            <aligny>center</aligny>
            <label>$INFO[ListItem.Label]</label>
        </control>
    </itemlayout>
    <focusedlayout height="40" width="480">
        <control type="label">
            <left>5</left>
            <top>0</top>
            <width>390</width>
            <height>40</height>
            <font>font13</font>
            <textcolor>white</textcolor>
            <selectedcolor>selected</selectedcolor>
            <align>left</align>
            <aligny>center</aligny>
            <label>$INFO[ListItem.Label]</label>
        </control>
    </focusedlayout>
</control>

label:

Code:
<control type="label">
    <description>Duration</description>
    <left>0</left>
    <top>0</top>
    <width>250</width>
    <height>25</height>
    <label>Duration</label>
    <align>left</align>
    <aligny>center</aligny>
    <font>font12</font>
    <textcolor>white</textcolor>
    <shadowcolor>black</shadowcolor>
    <animation type="Conditional" condition="Control.HasFocus(724) + !IsEmpty(ListItem.Duration)" reversible="false">
        <effect type="slide" delay="2000" end="60.0" time="1000" />
    </animation>
</control>
Reply
#2
Buddy I'm trying the same as you. Please tell me i you got a solution for that as Control.HasFocus doesn't work the way we expected.
Reply
#3
Container.OnNext / Container.OnPrevious?
Reply

Logout Mark Read Team Forum Stats Members Help
Condition to animate label when change focus on itemlayout0