Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dbulli
Visitor

roMessageDialog above roScreen not clearing or nto showing

I was trying to use roScreen instead of roImageCanvas to see if I see any improvements in rendering. There is a point where i put i put a dialog above. The dialog won't draw. If I put an toImageCanvas in between, then it won't clear.

		
screen = CreateObject("roScreen") 'instructions
screen.Clear(&hf6f4f5FF)
screen.DrawObject(m.positions.logo.x,m.positions.logo.y, "blah.png")

d = CreateObject("roMessageDialog")
dPort = CreateObject("roMessagePort")
d.SetMessagePort(dPort)
d.SetText("message")
d.AddButton(1, "option 1")
d.AddButton(2, "option 2..")
d.EnableOverlay(true)
d.Show()
msg = Wait(0, dPort)

d.Close()
d = invalid
- Daniel
http://dbulli.com
0 Kudos
1 REPLY 1
RokuChris
Roku Employee
Roku Employee

Re: roMessageDialog above roScreen not clearing or nto showi

Putting an image canvas in between is the right approach. Be sure you're closing both the dialog and the image canvas. You will probably also need to re-draw your roScreen after closing them. You could also try using a double-buffered roScreen and see if that makes any difference.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.