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: 26,221
Joined: Oct 2003
Reputation: 178
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: 26,221
Joined: Oct 2003
Reputation: 178
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
Team-Kodi Member
Posts: 5,101
Joined: Mar 2009
Reputation: 73
Location: Cologne, Germany
Post: #6
bump. is this integrated yet?
find quote
Hitcher Offline
Skilled Skinner
Posts: 11,195
Joined: Aug 2007
Reputation: 106
Location: Eastleigh, UK
Post: #7
Just make a custom one.

https://bitbucket.org/Hitcher/skin.xeebo..._YesNo.xml
find quote
phil65 Offline
Team-Kodi Member
Posts: 5,101
Joined: Mar 2009
Reputation: 73
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
Team-Kodi Member
Posts: 2,437
Joined: Apr 2009
Reputation: 72
Location: Germany
Post: #9
Use a script. Smile

[Image: xp1080-21.png]
find quote
phil65 Offline
Team-Kodi Member
Posts: 5,101
Joined: Mar 2009
Reputation: 73
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
MassIV Offline
Skilled Skinner
Posts: 1,065
Joined: Mar 2012
Reputation: 34
Post: #11
bump. is this integrated yet?

Hitcher, your bitbucket link to the custom yes/no is dead.
I would be interested to see how you did it. Specially if you had a "function_to_do_if_confirmed" without using a script.
My next function would be to simply to open an "ok" dialog, nothing fancy.
(This post was last modified: 2012-08-04 11:04 by MassIV.)
find quote
nessus Offline
Skilled Skinner
Posts: 875
Joined: Apr 2009
Reputation: 24
Post: #12
http://forum.xbmc.org/showthread.php?tid=137262
find quote