Multiple canvases. How?

BlitzMax Forums/BlitzMax Beginners Area/Multiple canvases. How?

Amon(Posted 2006) [#1]
I know you have to use hooks it's just that I still don't get them.

How, using event hooks, could you setup multiple canvases that can be redrawn when moved and scaled but putting it all in a type?

A code example would be nice and appreciated. :)

Thanks :)


ImaginaryHuman(Posted 2006) [#2]
Use a normal event hook and look for the appropriate events, but then also check the Event `source` to see which gadget/canvas it came from. I found the event hooks tutorial in the tutorials section on MaxGUI to be very helpful.