Reply to thread

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:


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!


:D


Top Bottom