Trader5050
10 years agoNewbie
**Solved** Dialog not displaying
I have the following code in main() just after show()
and then...
... but the dialog is never displayed. What gives?
If targetAddress = "" then
showOKDialog("Notice","Due to Roku restrictions, blah blah blah blah........")
Else
' debug testing... why is this not displaying either
showOKDialog("Test",targetAddress)
End if
and then...
Sub showOKDialog(title = "NOTE" as String,message = "Press OK to continue" as String)
port = CreateObject("roMessagePort")
dialog = CreateObject("roMessageDialog")
dialog.SetMessagePort(port)
dialog.SetTitle(ttl)
dialog.SetText(message)
dialog.AddButton(1, "OK")
dialog.EnableBackButton(true)
dialog.Show()
While True
dlgMsg = wait(0, dialog.GetMessagePort())
If type(dlgMsg) = "roMessageDialogEvent"
if dlgMsg.isButtonPressed()
if dlgMsg.GetIndex() = 1
exit while
end if
else if dlgMsg.isScreenClosed()
exit while
end if
end if
end while
End Sub
... but the dialog is never displayed. What gives?