Coding a progress dialog (1 Viewer)

Status
Not open for further replies.

eggyman

Portal Member
February 21, 2010
10
0
Hi all, posted a similar question in the development forum for MP, but in hindsight this is probably a more suitable place.

I am just starting out looking into my first MP related code, using MP-tvseries 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:

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);
}

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.

Any pointers gratefully received!

:D
 

Inker

Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Hi all, posted a similar question in the development forum for MP, but in hindsight this is probably a more suitable place.

    It is not a more suitable place. This has zero to do with MP-TVSeries. I have responded in your other thread.

    In the future, pls don't crosspost, if you feel you have posted in the wrong category, instead ask a mod to move the post for you.

    Thank you.
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom