Progressbar (1 Viewer)

jonnep22

Portal Member
January 3, 2008
8
0
Home Country
Sweden Sweden
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);

}
 

Users who are viewing this thread

Top Bottom