simplePoster problem

Hi…
I’m working from the simplePoster example, and I have a small graphical glitch that I don’t see how to fix. All I’ve done to modify the example so far is change it 2 categories, with category dependent selections. The first category has one selection. The second has 2 selections. When I navigate to the second selection in the second category, press up, and go back to the first category, I end up on a blank second “selection”. Is there an easy fix?
-Kevin


categoryList = [ "Short", "Long" ]


if (category = "Short") then
    showList = [
        {
            ShortDescriptionLine1:"Mini",
            ShortDescriptionLine2:"Short Shows",
        }
    ]
else if (category = "Long") then
    showList = [
        {
            ShortDescriptionLine1:"Long",
            ShortDescriptionLine2:"Long Episodes",
            HDPosterUrl:"pkg:/media/bogusFileName_hd.jpg",
            SDPosterUrl:"pkg:/media/bogusFileName_hd.jpg"
        }
        {
            ShortDescriptionLine1:"Epic",
            ShortDescriptionLine2:"All-Day Shows",
            HDPosterUrl:"pkg:/media/bogusFileName_hd.jpg",
            SDPosterUrl:"pkg:/media/bogusFileName_hd.jpg"
        }
    ]
end if

“YungBlood” wrote:
Hi…
I’m working from the simplePoster example, and I have a small graphical glitch that I don’t see how to fix. All I’ve done to modify the example so far is change it 2 categories, with category dependent selections. The first category has one selection. The second has 2 selections. When I navigate to the second selection in the second category, press up, and go back to the first category, I end up on a blank second “selection”. Is there an easy fix?

It’s trying to keep the focus on the second item even though you’re changing the screen content when the category changes. One option is to reset the selected item each time the user changes categories…


if msg.isListFocused() then
  screen.SetFocusedListItem(0)
...

In the wait loop “msg.isListFocused()” event, add “screen.SetFocusedListItem(0)” after the SetContentList line. That will reset the selection to the first poster in the list.

EDIT: nowhereman beat me to it…

TheEndless & NoWhereMan,
Thank you both! :slightly_smiling_face:
-Kevin