HOWTO display Label text with different text styles
Posted: Sun Nov 27, 2011 7:14 am
You like to diplay one LABEL with different text styles (normal, bold, italic, diff. colors, etc.) ?
This is very simle in HMG4.
LABEL is based on QLabel() and this widget understand XHTML. The only thing you need to know are CSS commands.
Will display: Normal italic Red Normal
Ricci
This is very simle in HMG4.
LABEL is based on QLabel() and this widget understand XHTML. The only thing you need to know are CSS commands.
Code: Select all
DEFINE LABEL oLabel
ROW 10; COL 10
WIDTH 100; HEIGHT 20
VALUE "Normal <em>italic</em> <span style='color:red;'>Red</span> Normal"
END LABEL
Ricci