Hey,

I have to mention, that you code is not really effective - you could put the while in main into an event - the on_resize event (of course without the while).

Just a tip - but thanks for the contribution - now not so many people will hopefully ask for it laugh