i’m new using Juce and i’m a bit lost. I need a progress bar telling the percentage complete of a calculation. I think it can be done with ThreadWithProgressWindow or AlertWindow::addprogressbar. I failed with both. I think the code should be something like this:

ThreadWithProgressWindow threadwithprogresswindow(T(“progres”),true,true, 10000, T(“Cancel”));
int i;
threadwithprogresswindow.setProgress((double) i/1000);

I’d thank if someone tells me how to do it.


You’re getting a bit mixed-up there. You don’t call the runThread method, you do the work inside it. Have a look at the demo code for this in the juce demo.


Ok, I understand a little better. Thanks.