Repainting while resizing

BlitzMax Forums/MaxGUI Module/Repainting while resizing

dooz(Posted 2006) [#1]
Is there a way to repaint the contents of canvases while you resize the window? At the moment it draws trash until the resize completes (on Windows XP) then you get 20 repaint messages.


Grisu(Posted 2006) [#2]
The workaround I use for this is to set a timer for repainting all canvases currently in view.


Yan(Posted 2006) [#3]
Do a forum search for 'eventhooks'.


dooz(Posted 2006) [#4]
Thanks Ian,

I considered using eventhooks, but I thought there might be a flag or something a little more elegant.


SebHoll(Posted 2006) [#5]
Assari has done a tutorial in his MaxGUI series on EventHooks, (link here).

I suggest you have a look at it as I found it really useful and after seeing the advantages, I always use eventhooks to draw canvases even on small apps.