Frozen Window

BlitzMax Forums/BlitzMax GUI Programming/Frozen Window

Hi.
I am coding an application, which has a button among the other gadgets.
When the button is pressed, i call a function, which will take an amount of time (on the order of minutes).

While the function is on execution, the window is frozen, and is not refreshed until the function finishes executing.

Is there a way to refresh/redraw the window? (i might call such a function a few times while doing the function's work)

You can use this, to update the window I think.

If PeekEvent()<>Null
    WaitEvent()
Endif



Thank you, i'll try it.
In the while i've used another executable to do the 'hard stuff'. :)