condition == in visible ?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Thumbs Up  condition == in visible ?
Post: #1
There are two buttons (or other controls which has some label/text on it which we can read).

and I want that if button1 has label "Music" then only button2 should be visible.

in button2:
<visible> what to write here </visible>

can we write something like this in button2:

<visible> control(idButton1).label =="Music" </visible>

Thanks for Help.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,221
Joined: Oct 2003
Reputation: 178
Post: #2
checkout stringcompare

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
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Post: #3
Thank You the function worked !!

But we can not read a control's label like this -> control(idButton1).label
how can we do that?
(This post was last modified: 2012-03-19 11:49 by slinuxgeek.)
find quote
Hitcher Offline
Skilled Skinner
Posts: 11,074
Joined: Aug 2007
Reputation: 103
Location: Eastleigh, UK
Post: #4
Control.GetLabel(CONTROL_ID)

So you'll want to use -

PHP Code:
<visible>StringCompare(Control.GetLabel(CONTROL_ID),$LOCALIZE[3])</visible


Note the use of localize from the language string so it's universal.
(This post was last modified: 2012-03-19 11:55 by Hitcher.)
find quote
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Post: #5
Thank You Hitcher !!
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,221
Joined: Oct 2003
Reputation: 178
Post: #6
If any of this is not clear in the wiki, then please let us know how it can be improved!

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
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Post: #7
@ jmarshall :
How will I tell, you about wiki ?
means should I message you privately or by posting new thread in forum?
Thank You
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,221
Joined: Oct 2003
Reputation: 178
Post: #8
Best is posting a thread, with the bit you don't understand, and (if you know the answer) what you think it should say to make it better.

After you've done a few of them, you can start correcting it yourself in the wiki.

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
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Post: #9
@jmarshall
<control type="progress"> is not explained on wiki please explain in detail.
find quote
`Black Offline
Team-Kodi Member
Posts: 2,437
Joined: Apr 2009
Reputation: 72
Location: Germany
Post: #10
http://wiki.xbmc.org/index.php?title=Progress_Control

[Image: xp1080-21.png]
find quote
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Post: #11
Thanks `Black !!
How did you reach there?

I was searching in
http://wiki.xbmc.org/index.php?title=XBM...ing_Manual
it's not there.

Thank You.
find quote
Martijn Offline
Team Kodi
Posts: 11,919
Joined: Jul 2011
Reputation: 170
Location: Dawn of time
Post: #12
Added to page to the complete lists.

IMO that page is totaly unreadable. Wouldn't it be better to link to the seperate controls/windows instead of including all the wikis into one page?

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

For your mediacenter artwork go to
[Image: fanarttv.png]
(This post was last modified: 2012-04-17 14:15 by Martijn.)
find quote
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Post: #13
I did not understand . Sad

How can I get there again without clicking on the link given by `Black.

Thank You.
find quote
Martijn Offline
Team Kodi
Posts: 11,919
Joined: Jul 2011
Reputation: 170
Location: Dawn of time
Post: #14
http://wiki.xbmc.org/index.php?title=Cat...evelopment

We know the wiki isn't ideal but it's WIP

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

For your mediacenter artwork go to
[Image: fanarttv.png]
(This post was last modified: 2012-04-17 14:25 by Martijn.)
find quote
butchabay Offline
Skilled Skinner
Posts: 3,843
Joined: Mar 2010
Reputation: 75
Location: Planet Crematoria
Post: #15
(2012-04-17 14:15)slinuxgeek Wrote:  I did not understand . Sad

How can I get there again without clicking on the link given by `Black.

Thank You.

Google Search: Search for "Progress XBMC" and the first result is there ! Smile
find quote
Post Reply