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!)
Noob coding help!
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="eggyman" data-source="post: 597988" data-attributes="member: 102390"><p>Hi all.</p><p>I'm just starting out looking into my first MP related code and i've become a bit stuck.</p><p></p><p>What i want to do is show a progress dialog popup over the current window but have have the code continue processing with the dialog showing.</p><p>I'm not a C# developer so forgive me if this is dumb.</p><p></p><p>This is what i've got at the moment:</p><p></p><p><span style="font-family: 'Courier New'">GUIDialogProgress dlgProgress =(GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS);</span></p><p><span style="font-family: 'Courier New'">if (dlgProgress != null)</span></p><p><span style="font-family: 'Courier New'">{</span></p><p><span style="font-family: 'Courier New'"> dlgProgress.SetHeading("blah...");</span></p><p><span style="font-family: 'Courier New'"> dlgProgress.SetPercentage(0);</span></p><p><span style="font-family: 'Courier New'"> dlgProgress.Progress();</span></p><p><span style="font-family: 'Courier New'"> dlgProgress.ShowProgressBar(false);</span></p><p><span style="font-family: 'Courier New'"> GUIWindowManager.Process();</span></p><p><span style="font-family: 'Courier New'"> dlgProgress.DoModal(GUIWindowManager.ActiveWindow);</span></p><p><span style="font-family: 'Courier New'">}</span></p><p></p><p>Now this shows a dialog window, but any code after DoModal doesn't run until the cancel button is pressed.</p><p>I tried StartModal, which doesn't show a window at all.</p><p></p><p>I'm struggling a bit here!</p><p></p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="eggyman, post: 597988, member: 102390"] Hi all. I'm just starting out looking into my first MP related code and i've become a bit stuck. What i want to do is show a progress dialog popup over the current window but have have the code continue processing with the dialog showing. I'm not a C# developer so forgive me if this is dumb. This is what i've got at the moment: [FONT="Courier New"]GUIDialogProgress dlgProgress =(GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS); if (dlgProgress != null) { dlgProgress.SetHeading("blah..."); dlgProgress.SetPercentage(0); dlgProgress.Progress(); dlgProgress.ShowProgressBar(false); GUIWindowManager.Process(); dlgProgress.DoModal(GUIWindowManager.ActiveWindow); }[/FONT] Now this shows a dialog window, but any code after DoModal doesn't run until the cancel button is pressed. I tried StartModal, which doesn't show a window at all. I'm struggling a bit here! :thx: [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Noob coding help!
Contact us
RSS
Top
Bottom