ControlLabel
#1
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.
Reply
#2
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
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
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.
Reply
#4
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.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#5
setlabel is avalible to both button and label
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Reply
#6
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.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
ControlLabel0