2 WIndows & 2 Canvases

BlitzPlus Forums/BlitzPlus Programming/2 WIndows & 2 Canvases

Kevin_(Posted 2003) [#1]
Hi folks

I am having a problem switching between 2 windows thar are open (No parent gadget). Each window has a canvas as well. When I swith from one canvas to the other, the display gets corrupted the next time I switch it back.

I am calling the setbuffer canvasbuffer function when I need to switch canvases to set that canvas as the current drawing buffer but my display gets corrupted.

What I am wondering is that both my windows do not have a parent and I think this maybe causing the problem. Should there be only ONE root gadget? i.e. the main window, and any other windows that need to be created should be children of this root window?

Your thoughts.....

Regards


Kevin_(Posted 2003) [#2]
I've sorted it. Ths was a new app I was working on with multiple windows & multiple canvases. I simply forget to flip the canvas before moving to another window (doh!)

Regards