Raw multiwindows drawing

Hi everybody,

I’ve faced with a problem: my application draws on widget’s surface with using SetIPixel and others. It works well if I use only one window, but it draws on wrong (active) window, if I use any other (in my application).

In short, I want to do something like this:

//select previous widget?

So, how to tell Photon that I want to draw on specified window?

Are you using a raw widget and it’s draw callback?

Generally if you want to mix Pg* calls with Pt* calls, you should be using the raw widget callbacks to do it.


There should be widget damaging before drawing. Thus Photon will know what widget to redraw then. It works now.