[fixed] - new feature for StackLayout not quite done... | Page 2

Discussion in 'MediaPortal 1.2.0 ALPHA' started by pilehave, December 22, 2010.

  1. SilentException
    • Premium Supporter

    SilentException Retired Team Member

    Joined:
    October 27, 2008
    Messages:
    2,617
    Likes Received:
    1,125
    Gender:
    Male
    Location:
    Rijeka, Croatia
    Ratings:
    +1,129 / 0
    Home Country:
    Croatia Croatia
    Screw real life, who needs that :p

    Try r27105. I fixed spacing problem and added GUIControl list.


     
    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. SilentException
    • Premium Supporter

    SilentException Retired Team Member

    Joined:
    October 27, 2008
    Messages:
    2,617
    Likes Received:
    1,125
    Gender:
    Male
    Location:
    Rijeka, Croatia
    Ratings:
    +1,129 / 0
    Home Country:
    Croatia Croatia
    No reply? Marking as fixed then..
     
  4. pilehave
    • Premium Supporter

    pilehave Community Skin Designer

    Joined:
    April 2, 2008
    Messages:
    2,566
    Likes Received:
    500
    Gender:
    Male
    Occupation:
    Technical consultant, marketing
    Location:
    Hornslet
    Ratings:
    +517 / 0
    Home Country:
    Denmark Denmark
    If I add a button of type "togglebutton" I still cannot get it to work...would you be kind and try adding this button right in the middle of yours (to test):

    Code (Text):
    1.  
    2. <control>
    3.     <description>Testbutton</description>
    4.     <type>togglebutton</type>
    5.     <id>1</id>
    6.     <hyperlink>96742</hyperlink>
    7.     <label>Just a test</label>
    8.     <onright>50</onright>
    9.     <onup>9</onup>
    10.     <ondown>9112</ondown>
    11. </control>
    12.  
    It doesn't matter if you set the visibility or not, when you hide show the other buttons, it simply just doesn't move up/down.
     
    • Like Like x 1
  5. SilentException
    • Premium Supporter

    SilentException Retired Team Member

    Joined:
    October 27, 2008
    Messages:
    2,617
    Likes Received:
    1,125
    Gender:
    Male
    Location:
    Rijeka, Croatia
    Ratings:
    +1,129 / 0
    Home Country:
    Croatia Croatia
    Yea, one "if GUIButtonControl" was left in the code :) I reworked it so that we use Children as a list of controls now (instead of private _controls list). Tested with your button and it worked as expected.

    Try it at r27114. Thanks for your testing :)
     
    • Like Like x 2
  6. catavolt
    • Team MediaPortal
    • Administrator

    catavolt Design Group Manager

    Joined:
    August 13, 2007
    Messages:
    12,286
    Likes Received:
    5,008
    Gender:
    Male
    Occupation:
    Technical Documentation, Translation
    Location:
    Lanzarote
    Ratings:
    +7,452 / 38
    Home Country:
    Germany Germany
    Show System Specs
    AW: new feature for StackLayout not quite done...

    Hmm, made it in TV section of Blue4Wide trying to hide the Teletext button gap when TV is off. Hiding works, but when TV is turned on, the Teletext button overlaps the following button (which is for TVSeries).
    Show Spoiler
    <control>
    <type>group</type>
    <layout>StackLayout(0, Vertical, true)</layout>
    <!--layout>StackLayout</layout-->
    <description>group element</description>
    <animation effect="fade" time="150">WindowOpen</animation>
    <animation effect="fade" time="150">WindowClose</animation>
    <posX>71</posX>
    <posY>121</posY>
    <control>
    <description>TV On/Off button</description>
    <type>togglebutton</type>
    <id>8</id>
    <label>707</label>
    <onup>17</onup>
    <ondown>7</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Channel button</description>
    <type>button</type>
    <id>7</id>
    <label>602</label>
    <onup>8</onup>
    <ondown>2</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>TVGuide</description>
    <type>button</type>
    <id>2</id>
    <label>600</label>
    <hyperlink>600</hyperlink>
    <onup>7</onup>
    <ondown>11</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Recordings</description>
    <type>button</type>
    <id>11</id>
    <label>604</label>
    <hyperlink>603</hyperlink>
    <onup>2</onup>
    <ondown>3</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Record Now</description>
    <type>button</type>
    <id>3</id>
    <label>601</label>
    <onup>11</onup>
    <ondown>14</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Active Recordings</description>
    <type>button</type>
    <id>14</id>
    <label>200052</label>
    <onup>3</onup>
    <ondown>9</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Active Streams</description>
    <type>button</type>
    <id>9</id>
    <label>692</label>
    <onup>14</onup>
    <ondown>10</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Scheduler</description>
    <type>button</type>
    <id>10</id>
    <label>603</label>
    <hyperlink>601</hyperlink>
    <onup>9</onup>
    <ondown>12</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Search</description>
    <type>button</type>
    <id>12</id>
    <label>137</label>
    <hyperlink>604</hyperlink>
    <onup>10</onup>
    <ondown>13</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>Teletext</description>
    <type>button</type>
    <id>13</id>
    <label>1441</label>
    <onup>12</onup>
    <ondown>76</ondown>
    <onright>99</onright>
    </control>
    <control>
    <description>TV Shows</description>
    <type>button</type>
    <id>76</id>
    <hyperlink>9811</hyperlink>
    <label>1300</label>
    <onup>13</onup>
    <ondown>8</ondown>
    <visible>plugin.IsEnabled(MP-TV Series)</visible>
    </control>

    Screenshots:
     

    Attached Files:

    • 18-06-33.jpg
      18-06-33.jpg
      File size:
      117.3 KB
      Uploaded:
      December 23, 2010
      Views:
      81
    • 18-08-52.jpg
      18-08-52.jpg
      File size:
      108.8 KB
      Uploaded:
      December 23, 2010
      Views:
      89
    • Like Like x 1
  7. SilentException
    • Premium Supporter

    SilentException Retired Team Member

    Joined:
    October 27, 2008
    Messages:
    2,617
    Likes Received:
    1,125
    Gender:
    Male
    Location:
    Rijeka, Croatia
    Ratings:
    +1,129 / 0
    Home Country:
    Croatia Croatia
    This has to do with the fact that this is the last element (control) and with some error in indexing the controls. Will take a look. Nice to see this one tested this much :)
     
  8. SilentException
    • Premium Supporter

    SilentException Retired Team Member

    Joined:
    October 27, 2008
    Messages:
    2,617
    Likes Received:
    1,125
    Gender:
    Male
    Location:
    Rijeka, Croatia
    Ratings:
    +1,129 / 0
    Home Country:
    Croatia Croatia
    Committed final (i hope :)) fix in r27122. Everything should work OK now, again I hope :p
     
    • Like Like x 2
  9. catavolt
    • Team MediaPortal
    • Administrator

    catavolt Design Group Manager

    Joined:
    August 13, 2007
    Messages:
    12,286
    Likes Received:
    5,008
    Gender:
    Male
    Occupation:
    Technical Documentation, Translation
    Location:
    Lanzarote
    Ratings:
    +7,452 / 38
    Home Country:
    Germany Germany
    Show System Specs
    AW: new feature for StackLayout not quite done...

    Just tested it and YES! it works! Will test a bit further, but when it works with the teletext gap, it should work anywhere! BIG :D
     
  10. pilehave
    • Premium Supporter

    pilehave Community Skin Designer

    Joined:
    April 2, 2008
    Messages:
    2,566
    Likes Received:
    500
    Gender:
    Male
    Occupation:
    Technical consultant, marketing
    Location:
    Hornslet
    Ratings:
    +517 / 0
    Home Country:
    Denmark Denmark
    Thank you so much, happy holidays to you all!
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!