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: 
snandaca
Visitor

Artwork not being refreshed when returning

Hello,
I am having a problem when returning from a nested roGridScreen. I set up a main RoGridScreen and populate it with 5 static items and display it. Everything works fine and when the user clicks on one of the items, I create another RoGridScreen and populate it with dynamic items. I have the property "SetupBehaviorAtTopRow" to exit, so that it returns to the previous RoPosterGrid screen. Everything works well in the nested RoGridScreen and when I press the up arrow button, it comes back to the previous RoGridScreen. However, the artwork being displayed is the nested RoGridScreen and not the original RoGridScreen. The Titles, Description, Category heading everything else is repainted correctly, only the artwork is not painted. Once I press a button on the remote, e.g. the left or the right button, then it gets the correct art work but until then it shows the artwork from the nested RoGridScreen. I have tried naming the RoGridScreen differently, the lists differently, even put in a PosterScreen after it returns which it displays correctly but then when it goes to the RoGridScreen of the top level, it still shows the art work of the nested RoGridScreen. Any help would be appreciated.

Note: I am using v2.9 1553 Roku 1

Thanks,
Nanda
0 Kudos
7 REPLIES 7
destruk
Streaming Star

Re: Artwork not being refreshed when returning

Nested gridscreens can create graphic display bugs. You should close the gridscreen when an item is selected and recreate your next gridscreen.
Sometimes nested gridscreens work, however, if you have an audioplayer component it will cause graphic issues with your gridscreen as soon as you add content to play.
You might try adding a delay, or wait of 500ms when the top gridscreen closes, that might help.

I just tried opening and closing a gridscreen (that I thought worked fine nested) and the selected row displayed a single poster item when it should have had five. When I pressed down for the next row, the five posters that were supposed to be there scrolled up behind the highlighted poster - really weird. But it's a bug, so I don't think anything can be done through the script to fix that.
0 Kudos
destruk
Streaming Star

Re: Artwork not being refreshed when returning

0 Kudos
snandaca
Visitor

Re: Artwork not being refreshed when returning

Thanks...Any idea on when you might be able to fix it?

I tried the sleep(500) with different values but it didn't work.

Regards,
Nanda
0 Kudos
destruk
Streaming Star

Re: Artwork not being refreshed when returning

You mean they, not me. Since I don't have access to the internal component code. PNG transparency doesn't work on the Gridscreen either, so hopefully all those problems get fixed soon.
viewtopic.php?f=34&t=42331
0 Kudos
jbrave
Channel Surfer

Re: Artwork not being refreshed when returning

try doing this after returning to your grid screen:

dlg=createobject("roonelinedialog")
dlg.settitle("")
dlg.show()
dlg.close()

Don't know if this will work for gridscreens, it does work to refresh posterscreens

- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
snandaca
Visitor

Re: Artwork not being refreshed when returning

Thanks...tried that too, didn't work

Regards,
Nanda
0 Kudos
jbrave
Channel Surfer

Re: Artwork not being refreshed when returning

Why not just store all the info from your gridscreen in some arrays, then close the grid and create a new one instead of stacking or "nesting" them. Then when you return, recreate your old grid screen from the arrays, which should have already been loaded. If they are not already loaded when the user clicks to a lower level, just make sure you store the last loaded row so you can pick up loading when you return. This is how I've done it, back before you could stack grid screens.

It is tricky figuring out how to start from where you left off, and you have to "lazy load" everything in the background so the user is free to do whatever they want even if the screen isn't loaded yet, but not impossible.

- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
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.