ThreadWithProgressWindow title positioning


#1

…is not centered

[attachment=0]small bug.png[/attachment]


#2

Sorry, I can’t reproduce that…?


#3

did you checked on windows, just a normal ThreadWithProgressWindow on windows vista 64… (also with latest tip)


#4

just verified, seems to be windows only


#5

Yes, I was using windows, and it was fine. I was using the example in the demo app - have you tried that?


#6

demo works too, but if you try exact this code (from the comments) you get the issue

[code]class MyTask : public ThreadWithProgressWindow
{
public:
MyTask() : ThreadWithProgressWindow (“busy…”, true, true)
{
}

~MyTask()
{
}

void run()
{
	for (int i = 0; i < 1000; ++i)
	{
		// must check this as often as possible, because this is
		// how we know if the user's pressed 'cancel'
		if (threadShouldExit())
			break;

		// this will update the progress bar on the dialog box
		setProgress (i / (double) 1000);

		sleep(50);


		//   ... do the business here...
	}
}

};[/code]


#7

Thanks, will sort that out today.