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.
slinuxgeek
Senior Member Posts: 189 Joined: Feb 2012 Reputation: 0 |
|
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,523 Joined: Oct 2003 Reputation: 138 |
2012-03-19 11:43
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. ![]() |
| find quote |
slinuxgeek
Senior Member Posts: 189 Joined: Feb 2012 Reputation: 0 |
2012-03-19 11:49
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
Skilled Skinner Joined: Aug 2007 Reputation: 67 Location: Eastleigh, UK |
2012-03-19 11:50
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
Senior Member Posts: 189 Joined: Feb 2012 Reputation: 0 |
2012-03-19 12:26
Post: #5
Thank You Hitcher !!
|
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,523 Joined: Oct 2003 Reputation: 138 |
2012-03-20 00:57
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. ![]() |
| find quote |
slinuxgeek
Senior Member Posts: 189 Joined: Feb 2012 Reputation: 0 |
2012-03-20 06:58
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
Team-XBMC Developer Posts: 24,523 Joined: Oct 2003 Reputation: 138 |
2012-03-20 08:12
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. ![]() |
| find quote |
slinuxgeek
Senior Member Posts: 189 Joined: Feb 2012 Reputation: 0 |
2012-04-17 13:31
Post: #9
@jmarshall
<control type="progress"> is not explained on wiki please explain in detail. |
| find quote |
`Black
Skilled Skinner Joined: Apr 2009 Reputation: 50 Location: Germany |
2012-04-17 13:43
Post: #10
|
| find quote |

![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)

![[Image: sig_zps3af3b48e.jpg]](http://i620.photobucket.com/albums/tt289/Arcanthur/Celestium/sig_zps3af3b48e.jpg)
![[Image: xp1080-21.png]](http://www.planet-ira.de/wallpaper/xp1080-21.png)
Search
Help