idunno
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2012
06:43 PM
How Do I Use ShowPleaseWait
I have this function
However when I call it like so:
I never see the ShowPleaseWait screen, even though a print statement placed in the function will actually print, so I know its actually going through the function. Anyone have any idea what I'm doing wrong?
Function ShowPleaseWait(title As dynamic, text As dynamic) As Object
port = CreateObject("roMessagePort")
dialog = invalid
if text = ""
dialog = CreateObject("roOneLineDialog")
else
dialog = CreateObject("roMessageDialog")
dialog.SetText(text)
endif
dialog.SetMessagePort(port)
dialog.SetTitle(title)
dialog.ShowBusyAnimation()
dialog.Show()
return dialog
End Function
However when I call it like so:
if index = 6 and over = 1
ShowPleaseWait("","Retrieving Clips")
Print "ShowPleaseWait"
chooseStreams = 1
m.canvas.clearLayer(6)
print "select worked"
m.canvas.AllowUpdates(false)
m.canvas.SetLayer(5, [
I never see the ShowPleaseWait screen, even though a print statement placed in the function will actually print, so I know its actually going through the function. Anyone have any idea what I'm doing wrong?
3 REPLIES 3
idunno
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2012
06:55 PM
Re: How Do I Use ShowPleaseWait
Never mind figured it out. Added
Obvious in hindsight, but now the Showpleasewait screen runs indefinitely. How Does it know when to stop?
waitobj = ShowPleaseWait("","Retrieving Clips")
Obvious in hindsight, but now the Showpleasewait screen runs indefinitely. How Does it know when to stop?
belltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2012
07:56 PM
Re: How Do I Use ShowPleaseWait
waitObj.Close ()
idunno
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2012
06:53 AM
Re: How Do I Use ShowPleaseWait
Thanks, that solved my problem.