J
James Wong
Dear all,
I would like to know how I can set the width of label according to the
length of content. Since the label content is dynamic, length of label
should change from time to time to avoid word-warp. I don't want to pre-set
a "very long" width at design time because there is background color for the
label and I think it's not good-looking enough to have a long color tail
after the real content.
If there is no built-in function to do that, I want to know how I can make
the calculation by myself according to the font name, type, size and label
content.
Thanks for your attention and kindly help!
Regards,
James Wong
I would like to know how I can set the width of label according to the
length of content. Since the label content is dynamic, length of label
should change from time to time to avoid word-warp. I don't want to pre-set
a "very long" width at design time because there is background color for the
label and I think it's not good-looking enough to have a long color tail
after the real content.
If there is no built-in function to do that, I want to know how I can make
the calculation by myself according to the font name, type, size and label
content.
Thanks for your attention and kindly help!
Regards,
James Wong