Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
bcoding
Level 7

working with two screens

Hi, is there a way that I can use two screens one at the top of another. I believe this can be done with by creating multiple objects of roImageCanvas. However, I want the second screen to only cover a fraction of the whole display so that the previous screen underneath is visible in the background but I only want the top screen to be listening to events.

Thanks.
0 Kudos
2 Replies
renojim
Level 8

Re: working with two screens

I've used multiple image canvases at the same time. Just use TargetRect to draw to whatever area you desire. I believe the default behavior is that only the top screen will receive events, but I just assigned the same message port to all image canvases and didn't really care which one was getting the event; I was going to perform the same actions no matter what.

-JT
0 Kudos
bcoding
Level 7

Re: working with two screens

"renojim" wrote:
I've used multiple image canvases at the same time. Just use TargetRect to draw to whatever area you desire. I believe the default behavior is that only the top screen will receive events, but I just assigned the same message port to all image canvases and didn't really care which one was getting the event; I was going to perform the same actions no matter what.

-JT



thank you for the information.
0 Kudos