Hi,
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.runThread();
for(i=0;i<1000;i++){
threadwithprogresswindow.setProgress((double) i/1000);
}
I’d thank if someone tells me how to do it.