#include <GUIConstantsEx.au3>
#include "GUIRichLabel.au3"
$hGUI = GUICreate("Example #1", 300, 200)
$sData1 = _
'some simple data and... <font color="red" size="8.5" attrib="italic+bold">My</font> ' & _
'<font color="blue" size="9" attrib="bold">Colored</font> ' & _
'<font color="darkgreen" attrib="u" size="8.5" name="Tahoma">Label</font> data.'
$sData2 = _
'and ' & _
'<font color="brown" size="9" attrib="bold">Few</font> ' & _
'<font color="darkorange" size="9" attrib="bold">&more</font> ' & _
'<font color="navy" size="12" attrib="bold" name="Georgia">strings</font> data.'
$hRichLabe1 = _GUICtrlRichLabel
_Create
($hGUI, $sData1, 20, 20, 260, 25)
$hRichLabe2 = _GUICtrlRichLabel
_Create
($hGUI, $sData2, 20, 50, 260, 45)
$hRichLabe3 = _GUICtrlRichLabel
_Create
($hGUI, '', 20, 80, 260, 60)
GUISetState(@SW_SHOW, $hGUI)
_GUICtrlRichLabel
_SetData
($hRichLabe3, '<font attrib="bold" align="center">Hello New Data</font>' & @LF & '<font color="purple" size="9" attrib="bold">New Line</font>')
Sleep(1500)
_GUICtrlRichLabel
_SetPos
($hRichLabe3, 20, 120, 260, 40)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd