Your Digital Media Has Never Looked So Good

 
tmm1
Topic Author
Posts: 5
Joined: Mon Jun 27, 2016 12:31 pm

ListPanel inside OverhangPanelSetScene not showing leftLabel or rightLabel

Thu Jul 13, 2017 11:22 am

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.
 
tmm1
Topic Author
Posts: 5
Joined: Mon Jun 27, 2016 12:31 pm

Re: ListPanel inside OverhangPanelSetScene not showing leftLabel or rightLabel

Mon Jul 17, 2017 11:16 am

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>
Last edited by tmm1 on Wed Jul 19, 2017 11:54 am, edited 1 time in total.
 
User avatar
wburns
Posts: 2
Joined: Fri Jul 07, 2017 10:23 am

Re: ListPanel inside OverhangPanelSetScene not showing leftLabel or rightLabel

Wed Jul 19, 2017 5:30 am

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
 
tmm1
Topic Author
Posts: 5
Joined: Mon Jun 27, 2016 12:31 pm

Re: ListPanel inside OverhangPanelSetScene not showing leftLabel or rightLabel

Wed Jul 19, 2017 11:41 am

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.
 
tmm1
Topic Author
Posts: 5
Joined: Mon Jun 27, 2016 12:31 pm

Re: ListPanel inside OverhangPanelSetScene not showing leftLabel or rightLabel

Wed Jul 19, 2017 11:55 am

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.

Who is online

Users browsing this forum: No registered users and 6 guests