how to change the style of portion of Label's value

asked 2015-03-07 03:07:22 +0800

gds1987 gravatar image gds1987

Hi, all, one simple question: how to change the style of portion of Label's value

For example, inside the value of specific Label, can I change it into different style:

black bold green read ...

How, can I use this: Label.setValue("html tag <style 1=""> <style 2=""> "); something like that...

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-03-08 11:42:54 +0800

Darksu gravatar image Darksu
1991 1 4

Hello gds1987,

Why don't you use a hbox and inside that put multiple labels (Each label will have it's own styling).

Best Regards,


link publish delete flag offensive edit


Thank you for the answer. In fact, using many labels would achieve the purpose of different styles. But it is not effective or beautiful.

gds1987 ( 2015-03-09 11:45:12 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2015-03-07 03:07:22 +0800

Seen: 14 times

Last updated: Mar 08 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More