I’m writing a modal window system for my app. It’s going well but for one problem.
In order for the z-ordering of the windows to work properly I need to kill the canvases used and recreate them in the new z-order. This produces a flickering effect since createcanvas() immediately draws a big black box as soon as it’s called – even without flipping it.
I’ve noticed that other apps don’t have this problem. I have to use canvases to get the gadget action right. Soooo…..
1)Can you change the z-ordering of canvases without destroying it and redrawing (first drawn is always on top ect)?
2)Can you make createcanvas() wait for a flipcanvas before drawing anything – including the black square.
Anyone who’s written an app in bp must know what I’m banging on about here.
Thanks a lot.
This is in Windows desktop GUI mode btw.
In order for the z-ordering of the windows to work properly I need to kill the canvases used and recreate them in the new z-order. This produces a flickering effect since createcanvas() immediately draws a big black box as soon as it’s called – even without flipping it.
I’ve noticed that other apps don’t have this problem. I have to use canvases to get the gadget action right. Soooo…..
1)Can you change the z-ordering of canvases without destroying it and redrawing (first drawn is always on top ect)?
2)Can you make createcanvas() wait for a flipcanvas before drawing anything – including the black square.
Anyone who’s written an app in bp must know what I’m banging on about here.
Thanks a lot.
This is in Windows desktop GUI mode btw.