Forum Discussion

mkenya's avatar
mkenya
Visitor
14 years ago

How do I setup Grid Screen? Instructions Where?

I just bought my ROKU and have created my channel from the TED test files using videoplayer.

Is there a place i can get a step by step setup of a grid screen like Crackle.

When viewers select my channel i would like them to land on a grid layout like crackle .

I looked at the roGrid Sample Zips but they do not show instructions.
I have combed thru the PDF manual and it does not help much.
I am a newbie in the ROKU development environment.

Thanks in advance.

6 Replies

  • Honestly, no one has bothered to answer this? Is it that difficult? Or is it just too easy?
  • It's like a puzzle it depends on how many pieces to complete it, with some people helping here and there every week or month. Good luck.
    DA
  • Basic setup of a grid screen looks like this. See the Component Reference for detailed documentation on the grid screen: http://sdkdocs.roku.com/display/RokuSDKv43/roGridScreen

    port = CreateObject("roMessagePort")
    screen = CreateObject("roGridScreen")
    screen.SetMessagePort(port)
    screen.SetupLists(2) ' 2 rows
    screen.SetListNames(["Row 1", "Row 2"])
    screen.SetContentList(0, [{title: "Row 1, Item 1"}]) ' an array of content-meta-data
    screen.SetContentList(1, [{title: "Row 2, Item 1"}])
    screen.Show()
  • Thanks for that.
    Now how do i link that image to a play screen?
    Once I get this working I promise to post a working sample which one can replace with there own info.
  • Am still trying to understand after the grid is created. then How to you code the selected item to call a particular video play screen.. and also what files does that code goes into?

    Thanks
  • "RokuChris" wrote:
    Basic setup of a grid screen looks like this. See the Component Reference for detailed documentation on the grid screen: http://sdkdocs.roku.com/display/RokuSDKv43/roGridScreen

    port = CreateObject("roMessagePort")
    screen = CreateObject("roGridScreen")
    screen.SetMessagePort(port)
    screen.SetupLists(2) ' 2 rows
    screen.SetListNames(["Row 1", "Row 2"])
    screen.SetContentList(0, [{title: "Row 1, Item 1"}]) ' an array of content-meta-data
    screen.SetContentList(1, [{title: "Row 2, Item 1"}])
    screen.Show()


    Where do you place this codes???