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 roImageCanvas problem overhang

I am having an issue that I don't know if it's possible to get around. When I put a dialog above the canvas, it dims out all the image except what it thinks should be an Overhang graphic. Is there anyway to make it dim out entire screen?

canvas = CreateObject("roImageCanvas")
canvas.SetLayer( 0, [ this.background ] )
canvas.Show()

d = CreateObject("roMessageDialog")
dPort = CreateObject("roMessagePort")
d.SetMessagePort(dPort)
d.SetTitle("Code Expired")
d.SetText("This code has expired. Press OK to get a new one")
d.AddButton(1, "OK")
d.Show()


- Daniel
http://dbulli.com
0 Kudos
2 REPLIES 2
TheEndless
Channel Surfer

Re: roMessageDialog above roImageCanvas problem overhang

As best I can tell, this is a bug in the firmware that's a result of the old static overhang size, where it would dim the content area, but not the overhang. There are two possibilities to workaround it that I can think of...

  1. Use "EnableOverlay(True)" so nothing is dimmed (not available on roOneLineDialog).

  2. Use a combination of roImageCanvas and EnableOverlay(True) to draw your own dimmed overlay prior to displaying the message dialog (again, not available for roOneLineDialog, but you could potentially just draw the canvas over the undimmed area).
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
dbulli
Visitor

Re: roMessageDialog above roImageCanvas problem overhang

Thanks TheEndless ... not what I wanted to hear, but at least I know. Definitely complicates when there are buttons on screen.
- Daniel
http://dbulli.com
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.