Toggle button control
#1
how do I hide an image by pressing a toggle button?
Reply
#2
here is my layout: http://prntscr.com/9sgzhc
Reply
#3
python addons can't use toggle buttons, so use a regular one instead.

you can capture the onClick() in your code.
http://mirrors.xbmc.org/docs/python-docs...og-onClick

than you can change/hide the image (and change the button label if needed) in your code.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#4
this is a skin addon, can't I put the image waiting for the action in the toogle button and when clicked the image hides and when re-clicked the image re-appears?
Reply
#5
it can be a toggle button or a regular button, doesn't matter, as long as it works
Reply
#6
Found this animation that I can use on image control: <visible>Control.HasFocus(25)</visible>

It's not what I wanted, but its close
Reply
#7
add a conditional onclick to the buttons which sets/clear a window property.
use that window property as a visible condition for your image.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
Toggle button control0