2010-08-13, 15:51
Hi, I am trying to recreate a Play/pause button for the diaporama, and I get some trouble when I want pause or play icons to disapear
The "play" button must always be ON when we reach the page. And this page (slideshow.xml) is reached when clicking on a file, in the file brownser.
So, to try to "initialyse the value" ---- Visible_first_time ----, on the main page "Home.xml", I have added to the "Picture" menu button :
Then, in the "Slideshow.xml" file, I have created two buttons :
But it does not work. And I do not understand what is wrong Can someone help, please ?
The "play" button must always be ON when we reach the page. And this page (slideshow.xml) is reached when clicking on a file, in the file brownser.
So, to try to "initialyse the value" ---- Visible_first_time ----, on the main page "Home.xml", I have added to the "Picture" menu button :
Code:
<onclick>Skin.ToggleSetting(Visible_first_time)</onclick>
<selected>!Skin.HasSetting(Visible_first_time)</selected>
Then, in the "Slideshow.xml" file, I have created two buttons :
Code:
<control type="button" id="229">
<description>Play button</description>
<posx>1104</posx>
<posy>602</posy>
<onclick>Play</onclick>
<visible>[Skin.HasSetting(Visible_first_time)] | [Skin.HasSetting(SlideShow_Paused)]</visible>
<onclick>!Skin.ToggleSetting(Visible_first_time)</onclick>
<selected>Skin.HasSetting(Visible_first_time)</selected>
<onclick>Skin.ToggleSetting(SlideShow_Start)</onclick>
<selected>!Skin.HasSetting(SlideShow_Start)</selected>
</control>
<control type="button" id="230">
<description>pause button</description>
<posx>1104</posx>
<posy>602</posy>
<onclick>Pause</onclick>
<visible>!Control.IsVisible(229)</visible>
<onclick>Skin.ToggleSetting(SlideShow_Paused)</onclick>
<selected>!Skin.HasSetting(SlideShow_Paused)</selected>
<onclick>!Skin.ToggleSetting(Visible_first_time)</onclick>
<selected>Skin.HasSetting(Visible_first_time)</selected>
</control>
But it does not work. And I do not understand what is wrong Can someone help, please ?