CollapseHiddenButtons in Group StackLayout not Work (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    12,087
    6,867
    Kyiv
    Ukraine Ukraine
    Country flag
    • Thread starter
    • Moderator
    • #1
    Create a group of buttons (TitanConfig.xml), part invisible. I write as a wiki: StackLayout(5,Horizontal,true) - StackLayout(int spacing, Orientation orientation, bool CollapseHiddenButtons)
    XML:
      <control>
        <description>group element</description>
        <type>group</type>
        <posX>655</posX>
        <posY>586</posY>
        <animation effect="fade" time="150">WindowOpen</animation>
        <animation effect="fade" time="150">WindowClose</animation>
        <dimColor>0xffffffff</dimColor>
        <layout>StackLayout(5,Horizontal,true)</layout>
        <visible allowhiddenfocus="false">string.equals(#skin.setting.focus,ajsbasichome)</visible>
        <onleft>9600</onleft>
    
        <control Style="SettingsButtonSmall">
            <description>P1 L21 plugin choose</description>
            <type>menubutton</type>
            <id>96521</id>
            <mode>dialoglist</mode>
            <dialogTitle>Choose P1 L11 plugin</dialogTitle>
            <valueTextInButton>yes</valueTextInButton>
            <valuePrefixText>Test 1: </valuePrefixText>
            <onclick>#(skin.setstring('#skin.BasicHome.P1L21Plugin',#selectedlabel96521))</onclick>
            <binding>#skin.BasicHome.P1L21Plugin</binding>
            <subitems>
                <subitem>Picture</subitem>
            </subitems>
        </control>
    
        <control Style="SettingsButtonSmall">
            <description>P1 L22 plugin choose</description>
            <type>menubutton</type>
            <id>96522</id>
            <mode>dialoglist</mode>
            <dialogTitle>Choose P1 L22 plugin</dialogTitle>
            <valueTextInButton>yes</valueTextInButton>
            <valuePrefixText>Test 2: </valuePrefixText>
            <onclick>#(skin.setstring('#skin.BasicHome.P1L22Plugin',#selectedlabel96522))</onclick>
            <binding>#skin.BasicHome.P1L22Plugin</binding>
            <subitems>
                <subitem>Radio</subitem>
            </subitems>
        </control>
    
        <control Style="SettingsButtonSmall">
            <description>P1 L23 plugin choose</description>
            <type>menubutton</type>
            <id>96523</id>
            <mode>dialoglist</mode>
            <dialogTitle>Choose P1 L23 plugin</dialogTitle>
            <valueTextInButton>yes</valueTextInButton>
            <valuePrefixText>Test 3: </valuePrefixText>
            <onclick>#(skin.setstring('#skin.BasicHome.P1L22Plugin',#selectedlabel96523))</onclick>
            <binding>#skin.BasicHome.P1L22Plugin</binding>
            <subitems>
                <subitem>TVSeries</subitem>
            </subitems>
            <visible>false</visible>
        </control>
    
        <control Style="SettingsButtonSmall">
            <description>P1 L23 plugin choose</description>
            <type>menubutton</type>
            <id>96523</id>
            <mode>dialoglist</mode>
            <dialogTitle>Choose P1 L23 plugin</dialogTitle>
            <valueTextInButton>yes</valueTextInButton>
            <valuePrefixText>Test 4: </valuePrefixText>
            <onclick>#(skin.setstring('#skin.BasicHome.P1L22Plugin',#selectedlabel96523))</onclick>
            <binding>#skin.BasicHome.P1L22Plugin</binding>
            <subitems>
                <subitem>TVSeries</subitem>
            </subitems>
        </control>
      </control>
     

    Attachments

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    Top Bottom