Possible to open a yes/no dialog?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Leeuw Offline
Senior Member
Posts: 274
Joined: Apr 2009
Reputation: 0
Post: #1
Is it possible to open a "custom" yes/no dialog from within a skin? I can call xbmc.activatewindow(100), but is there any way to pass parameters to it?
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,570
Joined: Oct 2003
Reputation: 138
Post: #2
Nope. What are you after exactly?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Leeuw Offline
Senior Member
Posts: 274
Joined: Apr 2009
Reputation: 0
Post: #3
Trying to make a button press pop up an "are you sure?" type window
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,570
Joined: Oct 2003
Reputation: 138
Post: #4
Ah, ok. So you need something like:

<onclick>Dialog.Confirm(heading,line1,line2,line3,function_to_do_if_confirmed)</onclick>

Post a feature request on trac, including any other ideas you might have.

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Leeuw Offline
Senior Member
Posts: 274
Joined: Apr 2009
Reputation: 0
Post: #5
jmarshall Wrote:Ah, ok. So you need something like:

<onclick>Dialog.Confirm(heading,line1,line2,line3,function_to_do_if_confirmed)</onclick>

Post a feature request on trac, including any other ideas you might have.

Cheers,
Jonathan

Exactly! Ok, I will post on trac later today
find quote
phil65 Offline
Skilled Skinner
Posts: 4,458
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #6
bump. is this integrated yet?
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,976
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #7
Just make a custom one.

https://bitbucket.org/Hitcher/skin.xeebo..._YesNo.xml

[Image: sig_zps3af3b48e.jpg]
find quote
phil65 Offline
Skilled Skinner
Posts: 4,458
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #8
(2012-03-25 16:58)Hitcher Wrote:  Just make a custom one.

https://bitbucket.org/Hitcher/skin.xeebo..._YesNo.xml

already did that, nonetheless this would be useful to clean up the code.
find quote
`Black Offline
Skilled Skinner
Posts: 2,072
Joined: Apr 2009
Reputation: 51
Location: Germany
Post: #9
Use a script. Smile

[Image: xp1080-21.png]
find quote
phil65 Offline
Skilled Skinner
Posts: 4,458
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #10
which one? Big Grin will stay with my custom window then, was just wondering if a nicer/shorter soulution would be possible.
find quote
Post Reply