What I want it to do is to load a different description background image whenever the selected grid item changes. This way the color matches the selected image with a nice gradient - which you can't do using single colors.
None of this works
if msg.isListItemFocused() then
row = msg.GetIndex()
selection = msg.getData()
app = CreateObject("roAppManager")
if row=0 then
if selection=0 then
app.ClearThemeAttribute("GridScreenDescriptionImageSD")
screen.SetDescriptionVisible(FALSE)
app.SetThemeAttribute("GridScreenDescriptionImageSD","pkg:/images/1a_d.png")
screen.SetDescriptionVisible(TRUE)
Screen.Showmessage("HI")
Screen.ClearMessage()
Screen.Show()
end if
if selection=1 then
app.ClearThemeAttribute("GridScreenDescriptionImageSD")
screen.SetDescriptionVisible(FALSE)
app.SetThemeAttribute("GridScreenDescriptionImageSD","pkg:/images/1b_d.png")
screen.SetDescriptionVisible(TRUE)
Screen.Showmessage("HI")
Screen.ClearMessage()
Screen.Show()
end if
if selection=2 then
app.ClearThemeAttribute("GridScreenDescriptionImageSD")
screen.SetDescriptionVisible(FALSE)
app.SetThemeAttribute("GridScreenDescriptionImageSD","pkg:/images/1c_d.png")
screen.SetDescriptionVisible(TRUE)
Screen.Showmessage("HI")
Screen.ClearMessage()
Screen.Show()
end if
end if
print"list item focused | current show = "; row ; "data= "; selection
end if
How would you accomplish this task? And yes, for now I'm testing in SD.