How to open DialogVideoInfo using onclick?
#1
In Estuary Skin,
I would like to modify the Estuary skin so that clicking on the movie widget brings up the Dialogvideoinfo screen directly (rather than through the context menu).
It would be nice to use <onclick>something</onclick> to bring up the Dialogvideoinfo screen. I would appreciate any suggestions on how to modify the skin.

When I did a search on the forum for this, I found some piece of information as below

<onclick>ActivateWindow(movieinformation)</onclick>

If it is working, then where do I place this command in Estuary Skin? I mean which xml and code line. 

when I look at skin xml,
For an example, unwatched movie widget , it looks retrive movie widget from unwatched_movies.xsp
Home.xml
xml:

<control type="grouplist" id="5001">
...
<include content="WidgetListPoster" condition="Library.HasContent(movies)">
    <param name="content_path" value="special://skin/playlists/unwatched_movies.xsp"/>
    <param name="widget_header" value="$LOCALIZE[31007]"/>
    <param name="widget_target" value="videos"/>
    <param name="list_id" value="5300"/>
</include>
...
Includes_Home.xml
it defined WidgetListPoster
xml:

<include name="WidgetListPoster">
        <param name="onclick_condition">false</param>
        <definition>
            <include content="CategoryLabel">
                <param name="label">$PARAM[widget_header]</param>
                <param name="list_id" value="$PARAM[list_id]"/>
            </include>
            <include content="BusyListSpinner">
                <param name="list_id" value="$PARAM[list_id]"/>
                <param name="posy" value="250"/>
            </include>
            <control type="panel" id="$PARAM[list_id]">
                <left>0</left>
                <top>115</top>
                <visible>Integer.IsGreater(Container($PARAM[list_id]).NumItems,0) | Container($PARAM[list_id]).IsUpdating</visible>
                <right>0</right>
                <height>503</height>
                <onclick condition="$PARAM[onclick_condition]">$PARAM[onclick_action]</onclick>
                <include content="WidgetListCommon">
                    <param name="list_id" value="$PARAM[list_id]"/>
                </include>
                <itemlayout width="310" height="486">
                    <control type="group">
                        <left>68</left>
                        <top>10</top>
                        <include content="InfoWallMovieLayout">
                            <param name="focused" value="false" />
                        </include>
                    </control>
                </itemlayout>
                <focusedlayout width="310" height="486">
                    <control type="group">
                        <depth>DepthContentPopout</depth>
                        <left>68</left>
                        <top>10</top>
                        <animation type="Focus">
                            <effect type="zoom" start="100" end="110" time="200" tween="sine" easing="inout" center="230,130" />
                        </animation>
                        <animation type="Unfocus">
                            <effect type="zoom" start="110" end="100" time="200" tween="sine" easing="inout" center="230,130" />
                        </animation>
                        <include content="InfoWallMovieLayout">
                            <param name="focused" value="true" />
                        </include>
                    </control>
                </focusedlayout>
                <content sortby="$PARAM[sortby]" sortorder="$PARAM[sortorder]" target="$PARAM[widget_target]" limit="15">$PARAM[content_path]</content>
            </control>
        </definition>
    </include>
Reply
#2
You can't do it when clicking on a movie; only from a separate button.

You can just change the default select action to 'Show information' though.
Reply
#3
@Hitcher 
Thank you for your info.

only from a separate button
-> How about placing a hidden button(onclick) on the panel list? Does it work? 
What if my scenario will work, how can I disable play a movie automatically when it click a movie widget?

You can just change the default select action to 'Show information
-> It would be help let me know the code to do that
Reply
#4
(2023-03-15, 14:21)kenmoon Wrote: -> How about placing a hidden button(onclick) on the panel list? Does it work? 
What if my scenario will work, how can I disable play a movie automatically when it click a movie widget?

It has to be a button outside of the list.

(2023-03-15, 14:21)kenmoon Wrote: -> It would be help let me know the code to do that

Settings > Media > Videos > Default select action > Show information
Reply
#5
@Hitcher 

I just add
<onclick>Info</onclick>
on the panel list, then when I click movie widget, it changes to the info screen. That is what I want.
just add <onclick>Info</onclick> at last line.
xml:

<include name="WidgetListPoster">
        <param name="onclick_condition">false</param>
        <definition>
            <include content="CategoryLabel">
                <param name="label">$PARAM[widget_header]</param>
                <param name="list_id" value="$PARAM[list_id]"/>
            </include>
            <include content="BusyListSpinner">
                <param name="list_id" value="$PARAM[list_id]"/>
                <param name="posy" value="250"/>
            </include>
            <control type="panel" id="$PARAM[list_id]">
                <left>0</left>
                <top>115</top>
                <visible>Integer.IsGreater(Container($PARAM[list_id]).NumItems,0) | Container($PARAM[list_id]).IsUpdating</visible>
                <right>0</right>
                <height>503</height>
                <onclick condition="$PARAM[onclick_condition]">$PARAM[onclick_action]</onclick>
                <include content="WidgetListCommon">
                    <param name="list_id" value="$PARAM[list_id]"/>
                </include>
                <itemlayout width="310" height="486">
                    <control type="group">
                        <left>68</left>
                        <top>10</top>
                        <include content="InfoWallMovieLayout">
                            <param name="focused" value="false" />
                        </include>
                    </control>
                </itemlayout>
                <focusedlayout width="310" height="486">
                    <control type="group">
                        <depth>DepthContentPopout</depth>
                        <left>68</left>
                        <top>10</top>
                        <animation type="Focus">
                            <effect type="zoom" start="100" end="110" time="200" tween="sine" easing="inout" center="230,130" />
                        </animation>
                        <animation type="Unfocus">
                            <effect type="zoom" start="110" end="100" time="200" tween="sine" easing="inout" center="230,130" />
                        </animation>
                        <include content="InfoWallMovieLayout">
                            <param name="focused" value="true" />
                        </include>
                    </control>
                </focusedlayout>
                <content sortby="$PARAM[sortby]" sortorder="$PARAM[sortorder]" target="$PARAM[widget_target]" limit="15">$PARAM[content_path]</content>
                <onclick>Info</onclick>
            </control>
        </definition>
    </include>

Reply

Logout Mark Read Team Forum Stats Members Help
How to open DialogVideoInfo using onclick?0