Overriding onclick in MyVideoNav possible?
#1
Hi,
I'm playing around with Estuary and try to change the behaviour of the onclick action in the video navigation. From what i got from the skinning manual i can override the onclick on lists. So i tried to modify the widelist and added an onclick tag like this 
xml:
<includes>
    <include name="View_55_WideList">
        <control type="group">
            <include>OpenClose_Right</include>
            <visible>Control.IsVisible(55)</visible>
            <include>Visible_Right</include>
            <control type="fixedlist" id="55">
                <left>594</left>
                <top>list_y_offset</top>
                <bottom>list_y_offset</bottom>
                <right>0</right>
                <scrolltime tween="cubic" easing="out">500</scrolltime>
                <orientation>vertical</orientation>
                <onclick>RunPlugin(plugin://plugin.program.relatedmedia?store=1)</onclick>

But nothing is happening, as in the default click is still happening but not the onclick. Can someone tell me if this not possible or what i'm doing wrong.

Thanks
Reply
#2
Try adding a hidden button to the focused layout of the list container:

PHP Code:
        <focusedlayout width="802" height="111">
                <
control type="button">
                        <
posx>-30</posx>
                        <
posy>-30</posy>
                        <
width>1</width>
                        <
height>1</height>
                        <
label></label>
                        <
texturenofocus></texturenofocus>
                        <
texturefocus></texturefocus>
                        <
onclick>do_stuff</onclick>
                 </
control>
                         .
                         .
                         . 
Reply
#3
(2020-04-19, 20:26)nonJon Wrote: Try adding a hidden button to the focused layout of the list container:
PHP Code:
<focusedlayout width="802" height="111">
<
control type="button">
<
posx>-30</posx>
<
posy>-30</posy>
<
width>1</width>
<
height>1</height>
<
label></label>
<
texturenofocus></texturenofocus>
<
texturefocus></texturefocus>
<
onclick>do_stuff</onclick>
</
control>
.
.

Hi, 
thanks that did put me in the right direction. Eventhough the onclick here doesn't work as well (i guess in the mysts of includes and variables there is a reason for that) i can use onfocus for what i want to try. Thanks for the hint.
Reply

Logout Mark Read Team Forum Stats Members Help
Overriding onclick in MyVideoNav possible?0