2008-02-06, 19:47
I'm attempting to make some slight changes in the display depending on whether the video LIBRARY is active or the video FILES is active.
I'm trying to do this using either Window.IsVisible() or Window.IsActive() but i'm having some issues. The check for the LIBRARY window's ID works fine, but the check for the FILES window's ID never returns true.
The code where i'm doing the checks:
I've checked that the window IDs are correct multiple times. I have the right numbers in there. The first version of the button, the one checking window ID 25 shows up properly when it should, and hides properly when it should. The second one however, the one that checks on window ID 6, never shows up.
I'm trying to do this using either Window.IsVisible() or Window.IsActive() but i'm having some issues. The check for the LIBRARY window's ID works fine, but the check for the FILES window's ID never returns true.
The code where i'm doing the checks:
Code:
<control type="button" id="11">
<description>Library button</description>
<posx>0</posx>
<posy>40</posy>
<width>182</width>
<height>32</height>
<label>Files Mode</label>
<onclick>ReplaceWindow(myvideofiles)</onclick>
<onclick>SetFocus(11)</onclick>
<onleft>50</onleft>
<onright>50</onright>
<onup>1</onup>
<ondown>10</ondown>
<texturefocus>videolibrary_menu_selected.png</texturefocus>
<texturenofocus>-</texturenofocus>
<font>font20</font>
<textcolor>FFFFFFFF</textcolor>
<focusedcolor>FFFFFFFF</focusedcolor>
<disabledcolor>disabled</disabledcolor>
<textoffsetx>10</textoffsetx>
<aligny>center</aligny>
<visible>Window.IsVisible(25)</visible>
</control>
<control type="button" id="11">
<description>Library button</description>
<posx>0</posx>
<posy>40</posy>
<width>182</width>
<height>32</height>
<label>Library Mode</label>
<onclick>ReplaceWindow(myvideolibrary)</onclick>
<onclick>SetFocus(11)</onclick>
<onleft>50</onleft>
<onright>50</onright>
<onup>1</onup>
<ondown>10</ondown>
<texturefocus>videolibrary_menu_selected.png</texturefocus>
<texturenofocus>-</texturenofocus>
<font>font20</font>
<textcolor>FFFFFFFF</textcolor>
<focusedcolor>FFFFFFFF</focusedcolor>
<disabledcolor>disabled</disabledcolor>
<textoffsetx>10</textoffsetx>
<aligny>center</aligny>
<visible>Window.IsVisible(6)</visible>
</control>
I've checked that the window IDs are correct multiple times. I have the right numbers in there. The first version of the button, the one checking window ID 25 shows up properly when it should, and hides properly when it should. The second one however, the one that checks on window ID 6, never shows up.