Whenever the browser is resized, I must call javascript / jquery to correctly resize some controls.
I went my way to optimize it the best I could, but I also wonder if I can temporarily freeze drawing until I'm done, ie.
$(window).resize(function() {
Canvas.Lock;
try
// Do my stuff...
finally
Canvas.unlock;
end;
});
Is this possible?
PS. What I want is to temporarily freeze the UI (disable repainting), not show some "please wait..." modal dialog while my js code is busy