Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tmm1
Channel Surfer

ListPanel inside OverhangPanelSetScene not showing leftLabel or rightLabel

I created a simple ListPanel inside a OverhangPanelSetScene, then created a LabelList child and populated it with some entries. The LabelList shows up fine, but the leftLabel and rightLabel above it do not.

I also tried to use showSectionLabels=true with sectioned content inside my LabelList, but since leftLabel is not showing up I can't see the section titles either.
0 Kudos
4 REPLIES 4
tmm1
Channel Surfer

Re: ListPanel inside OverhangPanelSetScene not showing leftLabel or rightLabel

Can anyone else confirm or deny that they see this problem?

Here's an example panel:

<?xml version="1.0" encoding="utf-8" ?>
<component name="NavPanel" extends="ListPanel">
  <script type="text/brightscript">
    <![CDATA[
      sub init()
        m.top.overhangTitle = "Test"
        m.top.leftLabel.text = "hello"
        m.top.rightLabel.text = "world"

        list = m.top.createChild("LabelList")
        list.vertFocusAnimationStyle = "floatingFocus"

        m.content = createObject("RoSGNode","ContentNode")
          addSection("Section 1")
          addItem("Item 1")
          addSection("Section 2")
          addItem("Item 2")
          addItem("Item 3")
        list.content = m.content

        m.top.list = list
      end sub

      sub addSection(sectiontext as string)
        m.sectionContent = m.content.createChild("ContentNode")
        m.sectionContent.CONTENTTYPE = "SECTION"
        m.sectionContent.TITLE = sectiontext
      end sub

      sub addItem(itemtext as string)
        item = m.sectionContent.createChild("ContentNode")
        item.title = itemtext
      end sub
    ]]>
  </script>
</component>
0 Kudos
wburns
Visitor

Re: ListPanel inside OverhangPanelSetScene not showing leftLabel or rightLabel

Were you still experiencing this issue?

I ran the component example you posted above within the Scenegraph tutorial app, and I'm able to see both labels above the highlighted item in the listpanel.

Could you send a screenshot of what's on your screen?
Will Burns
Developer, REDspace
redspace.com
0 Kudos
tmm1
Channel Surfer

Re: ListPanel inside OverhangPanelSetScene not showing leftLabel or rightLabel

Thanks a lot for confirming it works for you!

I figured out the problem.. the color of the text was the same as the background, so it wasn't visible.
0 Kudos
tmm1
Channel Surfer

Re: ListPanel inside OverhangPanelSetScene not showing leftLabel or rightLabel

So setting the leftLabel or rightLabel to some specific text definitely works. But if I leave them blank, and set

        m.top.showSectionLabels = true

then the leftLabel is not automatically populated like the documentation suggests.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.