Kodi Community Forum
ControlLabel - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: ControlLabel (/showthread.php?tid=20714)



- kinhell - 2006-06-27

is it me, or is controllabel a little limited in what you can do with it? i.e. i don't seem to be able to specify different font sizes (font13 is the only one that seems to work), and you can't bold the text, etc.

or am i missing something? Confused

if there's some documentation somewhere then i've not found it so far, and i can't spot an existing script which uses a different font size from the rest of the gui items.

thanks in advance.


- Nuka1195 - 2006-06-27

you can set the font at creation. if you want to set things like font and color after creation, use a button with no textures. works great.

http://home.no.net/thor918/xbmc/xbmc.html

http://home.no.net/thor918/xbmc/xbmcgui.html


- kinhell - 2006-06-28

ah, i'd not tried the button. i'll give that a go. i've been using the controllabel as documented and it only seems to work with font13. i'll persevere and see what i can do.

so if the documentatation is anything to go by, there's no extra attributes such as bold, italics, or underline?

thanks for helping out.


- Nuka1195 - 2006-06-28

no extra attributes. but if only font13 is working for you. there was a change recently made that if a font does not exist it reverts to font13.

at creation you should be able to set any attribute for the controllabel's label as the controlbutton's label accepts.

it's just the button allows you to change more things after creation, using setlabel().

they both accept $info[] tags also.


- [email protected] - 2006-07-04

setlabel is avalible to both button and label


- Nuka1195 - 2006-07-04

but you can only change the text.

the button allows you to change text, font, text color, disabled color and shadow color.

it's more flexible.