beautypg.com

BrightSign Object Reference Manual (FW 5.1) User Manual

Page 228

background image

220

Example:

Note: For firmware versions 4.7.x and above, if no alpha value is specified when

roTextWidget.SetForegroundColor()

is

called, the text widget area will appear blank.
u=CreateObject("roUrlTransfer")
u.SetUrl("

http://www.lemonde.fr/rss/sequence/0,2-3208,1-0,0.xml

")

u.GetToFile("tmp:/rss.xml")

r=CreateObject("roRssParser")
r.ParseFile("tmp:/rss.xml")

EnableZoneSupport(1)
b=CreateObject("roRectangle", 0, 668, 1024, 100)
t=CreateObject("roTextWidget", b, 3, 2, 2)
t.SetForegroundColor(&hFFD0D0D0)
t.Show()

a = r.GetNextArticle()
while type(a) = "roRssArticle"

t.PushString(a.GetDescription())

sleep(1000)

a = r.GetNextArticle()

end while

while true

sleep(1000)

end while