About Progress bar (GUIProgressControl ) (1 Viewer)

lopez.tuparles

Retired Team Member
  • Premium Supporter
  • July 20, 2006
    396
    54
    49
    Mimet
    Hi,
    I am looking for information about the GUIProgressControl, here is an example of coding that doesen't do anything.
    In fact, i'am trying to fill a progressbar, could you help me.
    Thank's

    In XML:
    <control>
    <type>progress</type>
    <description>CPU progress control</description>
    <id>11</id>
    <posX>144</posX>
    <posY>88</posY>
    <width>272</width>
    <height>16</height>
    <dimColor>ff0000ff</dimColor>
    <animation effect="fade" time="250" reversible="false" pulse="false">WindowOpen</animation>
    <animation effect="fade" time="500" reversible="false" pulse="false">WindowClose</animation>
    <lefttexture>osd_progress_left.png</lefttexture>
    <texturebg>progress_back.png</texturebg>
    <midtexture>osd_progress_mid.png</midtexture>
    <righttexture>osd_progress_right.png</righttexture>
    </control>

    In Coda:
    Code:
    [SkinControlAttribute(11)]
            protected GUIProgressControl guiProgressCpu = null;
    
    public override void Process()
    {
                 guiProgressCpu.Percentage = 50;
                 // That doesen't Do Anything :-( 
    }
     

    lopez.tuparles

    Retired Team Member
  • Premium Supporter
  • July 20, 2006
    396
    54
    49
    Mimet
    Well, I've done it with two superposed "Image" , and playing with 'Width' propertie.
    It looks like a progress bar, but is anyone know how a true progress bar works.
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    I found this quite old thread when looking for a progress bar control... Is there any information on how someone to implement the GUIProgressControl?

    thx
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Take a look at mediaportal trunk\mediaportal\WindowPlugins\GUIMusic\GUICoverArtGrabberProgress.cs in the MP sourcecode. It should work like lopez.tuparles code. Insert some debugging points or logging to check if the function actually is called...
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    Hi takeuchie,

    have a look at this plugin I wrote recently to figure out the various controls. It just shows most of the controls available in MediaPortal and how to use them.

    It's not finished yet but it has GUIProgressControl (progress) and GUITVProgressControl (tvprogress) in it and should help you in figuring out how to use these controls...
     

    Users who are viewing this thread

    Top Bottom