2018-12-01, 15:30
(2018-12-01, 02:43)mikeSiLVO Wrote:Hi Mike,(2018-11-26, 18:24)Solo0815 Wrote:This is dependent on how you are sending/reading the <onclick>. You cannot invoke another dialog/window without closing an open one so you would have to post or send a link to your code for me to understand or test it.
So as a interim test, I'm currently using an existing button located within my VideoOSD.xml which currently opens the TVChannelsOSD. Code below shows before and after:-
Original code to open TVChannelsOSD
php:<control type="radiobutton" id="70040">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/channels.png"/>
</include>
<onclick>Dialog.Close(VideoOSD)</onclick>
<onclick>ActivateWindow(PVROSDChannels)</onclick>
<visible>VideoPlayer.Content(livetv)</visible>
</control>
Code I'm attempting to use to switch back to the previous channel with Number0 as the onclick button function.
php:<control type="radiobutton" id="70040">
<include content="OSDButton">
<param name="texture" value="osd/fullscreen/buttons/channels.png"/>
</include>
<onclick>Dialog.Close(VideoOSD)</onclick>
<onclick>Number0</onclick>
<visible>VideoPlayer.Content(livetv)</visible>
</control>
So it does seem to close the VideoOSD when the button is clicked, but currently seems to be ignoring the <onclick>Number0</onclick> for reasons I don't fully understand.
I plan to create a dedicated new button for this action, if I know I can get it to work.
Cheers