2019-04-16, 01:37
Can Control Toggle Buttons be used in add-on dialog windows?
If so, how can you determine the state of the button in an add-on script?
If so, how can you determine the state of the button in an add-on script?
(2019-04-18, 13:09)bigretromike Wrote: According to ronie: https://forum.kodi.tv/showthread.php?tid=257189 you can't use toggle buttons in add-on.Thanks
(2019-04-20, 20:03)jmooremcc Wrote: I looked at that but it appears to not let you create a classic radiobutton with concentric circles. It offsets one of textures to the right and I didn't see a way around that.
(2019-04-21, 09:14)Roman_V_M Wrote:(2019-04-20, 20:03)jmooremcc Wrote: I looked at that but it appears to not let you create a classic radiobutton with concentric circles. It offsets one of textures to the right and I didn't see a way around that.
Not quite true. I don't know about XML-based layout (I don't have much experience with that) but ControlRadioButton is a classic round on/off button. Of course, for a vanilla xbmcgui.ControlRadioButton you need to supply a full set of texture images.
You can see here how it looks with different textures: http://romanvm.github.io/script.module.p...trols.html
Quote:textureradioonfocus: Specifies the image file which should be displayed for the radio button portion when it's the button is on and focused. This texture is positioned on the right of the button – it's positioned 24 pixels from the right edge of the button, and 8 pixels above the center vertically.I've not used the radiobutton control in an xml file before so I'm looking for any guidance I can get. It's just that that statement above caught my eye and made be assume that it was not possible to create a "classic" radiobutton.
(2019-04-22, 01:08)jmooremcc Wrote: I've not used the radiobutton control in an xml file before so I'm looking for any guidance I can get. It's just that that statement above caught my eye and made be assume that it was not possible to create a "classic" radiobutton.