Help to add a button

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
gegecom83 Offline
Junior Member
Posts: 17
Joined: Mar 2012
Reputation: 0
Post: #1
Hello,
For several days I try to add buttons in a view
Trailer for the button it works, but for the information movie, I get a blank window.
Thank you for your help

Code:
</control>
<control type="group" description="Options">
  <posy>0</posy>
  <posx>0</posx>
  <control type="grouplist" id="300">
    <posx>0</posx>
    <posy>673</posy>
    <width>1280</width>
    <height>59</height>
    <itemgap>0</itemgap>
    <aligny>bottom</aligny>
    <align>center</align>
    <onup>54</onup>
     <ondown>54</ondown>
    <orientation>horizontal</orientation>
    <control type="button" id="301" description="Trailer">
      <height>50</height>
      <width>180</width>
      <font>XSmall</font>
      <align>center</align>
      <label>Extrait</label>
      <textcolor>White</textcolor>
      <texturefocus>img/HomeBarFO.png</texturefocus>
      <enable>!IsEmpty(ListItem.Trailer)</enable>
     <onclick>PlayMedia(&quot;$INFO[ListItem.Trailer]&quot;)</onclick>
      <pulseonselect>true</pulseonselect>
    </control>
     <control type="button" id="302" description="Info">
      <height>50</height>
      <width>180</width>
      <align>center</align>
      <font>XSmall</font>
      <textcolor>White</textcolor>
      <label>Info</label>
       <onclick>ActivateWindow(2003)</onclick>
       <texturefocus>img/HomeBarFO.png</texturefocus>
      <alttexturefocus>img/HomeBarFO.png</alttexturefocus>
    </control>
  </control>

[Image: infoxo.jpg]
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,927
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #2
There's already a Trailer button in the Video Info screen -

http://wiki.xbmc.org/index.php?title=Lis...eoInfo.xml

[Image: sig_zps3af3b48e.jpg]
find quote
gegecom83 Offline
Junior Member
Posts: 17
Joined: Mar 2012
Reputation: 0
Post: #3
Thank you Hitcher
But when I hit the button "<onclick> ActivateWindow (2003) </ onclick>" in the view from my video library
I get a black screen
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,927
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #4
You shouldn't need a separate button (which doesn't work because you're no longer focused on a movie) instead press i.

[Image: sig_zps3af3b48e.jpg]
find quote
gegecom83 Offline
Junior Member
Posts: 17
Joined: Mar 2012
Reputation: 0
Post: #5
Thanks Hitcher
Is it possible to simulate to press "i" on the keyboard
with the command "<onclick>"
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,927
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #6
You'd need a script because as soon as you focus on a button you lose focus on the movie you want to access.

[Image: sig_zps3af3b48e.jpg]
find quote
gegecom83 Offline
Junior Member
Posts: 17
Joined: Mar 2012
Reputation: 0
Post: #7
Hitcher thank you for your help
find quote
butchabay Offline
Skilled Skinner
Posts: 3,420
Joined: Mar 2010
Reputation: 62
Location: Switzerland
Post: #8
There is a way, i'm not on my pc now, but i can post it later.
I've done something similar for a game info screen in cirrus extended and fusion migmav2.
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,264
Joined: Jun 2006
Reputation: 55
Location: Earth
Post: #9
Multiple onclick with the first one setting focus to the list then the next one opening the dialog probably

Skins I have done....
[Image: skinsq.png]
And others in the past...

Want to know what I'm working on currently? Check me out on Google+
find quote
gegecom83 Offline
Junior Member
Posts: 17
Joined: Mar 2012
Reputation: 0
Smile  RE: Help to add a button Post: #10
Thanks Smile
find quote
Post Reply