ControlButton truncation
#1
sometime ago (2005-03-31) we had a discussion that lead to 'madtw' adding in alignment of labels to ControlLabel, he also added them to ControlButton but not 'truncation' which was 'to be done later'

As far as I can tell this hasn't been added. Was it found that it couldn't be done?
I still think truncating label on ControlButton would be useful ?

thanks
BBB
Retired from Add-on dev
Reply
#2
try setting label2 to a space character.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
label2 on a ControlButton ?

I was referring to the alignment param.
eg. alignment=XBFONT_CENTER_Y|XBFONT_TRUNCATED
Retired from Add-on dev
Reply
#4
i'm aware of that, you can now setLabel( "label1", label2=" ").

when there is a value in label2 the control button truncates, i don't know if a space will work.

edit: i'm going to submit a patch to make "label" optional, i have need to be able to just set label2.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#5
I wasnt aware of label2 and I checked the docs in your sig before posting.
Is it a recent addition ?

still it would be nice to have either label obey the truncated alignment
but if that works, it'll be simpler than manually calc max text length as I do at moment.

thanks
Retired from Add-on dev
Reply
#6
i'm pretty sure that would require a change the the gui control button, not pythons. so would need to be handles by a developer, it might cause problems?
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#7
unfortunately, setting label2 to a space (or even empty) doesn't cause label1 to truncate.

Sad
Retired from Add-on dev
Reply

Logout Mark Read Team Forum Stats Members Help
ControlButton truncation0