Thread Rating:
  • 0 Vote(s) - 0 Average
condition == in visible ?
#1
Thumbs Up 
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.
Reply
#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
Reply
#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?
Reply
#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.
Reply
#5
Thank You Hitcher !!
Reply
#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
Reply
#7
@ jmarshall :
How will I tell, you about wiki ?
means should I message you privately or by posting new thread in forum?
Thank You
Reply
#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
Reply
#9
@jmarshall
<control type="progress"> is not explained on wiki please explain in detail.
Reply
#10
http://wiki.xbmc.org/index.php?title=Progress_Control
Image
Reply
#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.
Reply
#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?

Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#13
I did not understand . Sad

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

Thank You.
Reply
#14
http://wiki.xbmc.org/index.php?title=Cat...evelopment

We know the wiki isn't ideal but it's WIP
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#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
Reply



condition == in visible ?00