2008-02-27, 23:08
I have two controls, Control A is an image control, and Control B is a control group.
Control B is set to become visible with a System.IdleTime(2) so that it appears after 2 seconds of doing nothing. This works.
Control A is set to be visible only if Control B is NOT visible. This previously worked fine when Control B became visible through a hard action (Control B used to become visible by navigating to it), but now it no longer does. When control B becomes visible, Control A does not get hidden.
Code snippet follows
Control B is set to become visible with a System.IdleTime(2) so that it appears after 2 seconds of doing nothing. This works.
Control A is set to be visible only if Control B is NOT visible. This previously worked fine when Control B became visible through a hard action (Control B used to become visible by navigating to it), but now it no longer does. When control B becomes visible, Control A does not get hidden.
Code snippet follows
Code:
<control type="image">
<posx>415</posx>
<posy>0</posy>
<width>285</width>
<height>480</height>
<aspectratio align="right" aligny="center">keep</aspectratio>
<info>ListItem.Icon</info>
<visible>!ControlGroup(2000).IsVisible(0)</visible>
</control>
</control>
<control type="group" id="2000">
<animation effect="fade" start="0" end="100" time="200">Visible</animation>
<visible allowhiddenfocus="true">System.IdleTime(2)</visible>
<control type="image">
<posx>20</posx>
<posy>0</posy>
<width>335</width>
<height>480</height>
<aspectratio aligny="center">keep</aspectratio>
<info>ListItem.Icon</info>
</control>