Hello,
When building a basic roGridScreen, if I set GridScreenBackgroundColor to #FFFFFF I end up with vertical grey lines surrounding the display. Am I missing a theme property that needs to be set? Or is this a known issue? If so, is there a workaround for cases when the background of an roGridScreen needs to be white?
Example code (simplified from SimpleGrid SDK example):
Function Main()
theme = CreateObject("roAssociativeArray")
theme.GridScreenBackgroundColor = "#FFFFFF"
app = CreateObject("roAppManager")
app.SetTheme(theme)
gridstyle = "Flat-Movie"
m.port=CreateObject("roMessagePort")
screen = CreateObject("roGridScreen")
screen.SetMessagePort(m.port)
screen.SetDisplayMode("scale-to-fill")
screen.SetGridStyle(gridstyle)
categoryList = ["Drama"]
screen.setupLists(categoryList.count())
screen.SetListNames(categoryList)
for i = 0 to categoryList.count()-1
screen.SetContentList(i, getShowsForCategoryItem(categoryList[i]))
end for
screen.Show()
while true
print "Waiting for message"
msg = wait(0, m.port)
if type(msg) = "roGridScreenEvent" then
if msg.isListItemFocused() then
print"list item focused | current show = "; msg.GetIndex()
else if msg.isListItemSelected() then
row = msg.GetIndex()
selection = msg.getData()
print "list item selected row= "; row; " selection= "; selection
else if msg.isScreenClosed() then
return ""
end if
end If
end while
End Function
Function getShowsForCategoryItem(category As Object) As Object
showList = [
{
Title: category + ": Header",
releaseDate: "1976",
length: 3600-600,
Description:"This row is category " + category,
hdBranded: true,
HDPosterUrl:"http://upload.wikimedia.org/wikipedia/commons/4/43/Gold_star_on_blue.gif",
SDPosterUrl:"http://upload.wikimedia.org/wikipedia/commons/4/43/Gold_star_on_blue.gif",
Description:"Short Synopsis #1",
Synopsis:"Length",
StarRating:10,
}
]
return showList
End Function
This is my first post to the forums so I apologize if I missed anything... This has been driving me nuts though and I can't seem to find it documented elsewhere.
Thanks!