Hi Jules,
There is some alignment issue with ThreadWithProgressWindow on Windows
[attachment=0]dialog.png[/attachment]
This doesn’t happen on OSX.
Note: I’m not using JUCE_USE_DIRECTWRITE, but it maybe happen with it as well. (My development machine is a windows XP)
You can easily reproduce it if you add this to Hello World project
class MyTask : public ThreadWithProgressWindow
{
public:
MyTask() : ThreadWithProgressWindow ("This is a progress window", true, true)
{
}
void run()
{
for (int i = 0; i < 100; ++i)
{
// must check this as often as possible, because this is
// how we know if the user's pressed 'cancel'
if (threadShouldExit())
break;
juce::Thread::wait(1000);
// this will update the progress bar on the dialog box
setProgress (i / (double) 100);
// ... do the business here...
}
}
};
and at the end of MainComponent constructor
MyTask m;
m.setStatusMessage("This is some text");
if (m.runThread())
{
// thread finished normally..
}
Thanks,
