neowinston
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2017
06:41 AM
Why a ProgressDialog is not showing?
I'm trying to show a progress dialog, but it's not working. Here is the code that is in a .xml file and not in .brs file:
Any ideas why? Thanks for your help!
sub showdialog()
progressdialog = createObject("roSGNode", "ProgressDialog")
progressdialog.backgroundUri = "pkg:/images/rsgde_dlg_bg_hd.9.png"
progressdialog.title = "Buffering..."
m.top.dialog = progressdialog
m.timer = createObject("RoSGNode", "Timer")
m.timer.duration = 3
m.timer.control = "start"
m.timer.ObserveField("fire", "dismissdialog")
end sub
Any ideas why? Thanks for your help!