home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Progressbar
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jonnep22" data-source="post: 229673" data-attributes="member: 63809"><p>Im wondering how the update of a progressbar works?</p><p></p><p>I would like to update it with a new int percentage and after a couple of updates, i want it to close automaticly. Is this possible and if, how?</p><p></p><p>The current code behind the progressbar is as stated:</p><p></p><p> private void progressBar(int percentage)</p><p> {</p><p> prgB = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS);</p><p> prgB.DisplayProgressBar = true;</p><p> prgB.SetHeading("Loading");</p><p> prgB.SetLine(1,"xxxxxxx");</p><p> prgB.SetPercentage(percentage);</p><p> prgB.DisableCancel(true);</p><p> prgB.DoModal(GUIWindowManager.ActiveWindow);</p><p> </p><p> }</p></blockquote><p></p>
[QUOTE="jonnep22, post: 229673, member: 63809"] Im wondering how the update of a progressbar works? I would like to update it with a new int percentage and after a couple of updates, i want it to close automaticly. Is this possible and if, how? The current code behind the progressbar is as stated: private void progressBar(int percentage) { prgB = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS); prgB.DisplayProgressBar = true; prgB.SetHeading("Loading"); prgB.SetLine(1,"xxxxxxx"); prgB.SetPercentage(percentage); prgB.DisableCancel(true); prgB.DoModal(GUIWindowManager.ActiveWindow); } [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Progressbar
Contact us
RSS
Top
Bottom