Kodi Community Forum

Full Version: Conditional visibility
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there anything for conditional visibility based on if a button is enabled or disabled?
<visible>Control.IsVisible(id)</visible> or <visible>Control.HasFocus(id)</visible> is possible.
OK, thanks, IsVisible and HasFocus won't do what I am looking for. I'll just have to layout the screen slightly differently.

Thanks
thedroid Wrote:Is there anything for conditional visibility based on if a button is enabled or disabled?

maybe you can use the same condition that is used to define the enabled/disabled state of the button ?
ronie Wrote:maybe you can use the same condition that is used to define the enabled/disabled state of the button ?

Thanks ronie but it is being enable/disabled from within xbmc itself. Anyway I have sorted it by adjusting the dialog layout.