[MAXGUI] Force refresh Canvas when resizing win?

BlitzMax Forums/BlitzMax Programming/[MAXGUI] Force refresh Canvas when resizing win?

Grisu(Posted 2006) [#1]
Hi!

My problem is that when I resize my window and hold down the left mouse button when doing so, all gadgets (Labels, Listboxes, Textareas) refresh. Only the Canvasgfx is not updated untill I release the mousebutton.

Is there a way to do this manually?

I already use:
EVENT_GADGETPAINT
Redraw_MyCanvas() 'function to redraw the image on canvas
EVENT_WINDOWSIZE
Redraw_MyCanvas()

But it doesn't show an effect.

The see 2 screens as an example:
(kicked)

Any help is welcome!

Grisu


assari(Posted 2006) [#2]
you'll need to use eventhooks to overcome this modal behaviour. Read my tutorial #15.


Grisu(Posted 2006) [#3]
Assari, you're AWESOME.

It works... took me 5 min with your help.
And about 5h without it.... :(

Thanks!