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()
"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/roGridScreenport = 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()