drawing always in the main window ?

PgDrawIRect(0, 0, 600, 400, Pg_DRAW_FILL);
it is in the thread whitch does it every 3 seconds.

It always draws reactangle corresponding to active widget. When I select an item from combobox this reactangle is drawn with the left upper corner in the left upper corner of the combobox. Is there any way to make it draw always corresponding to main Window (always left upper corner (0 : 0)??

I think that you’ll likely need to provide a bit more background information. I’m
not really understanding what your problem is.

Thomas

From the docs:

PgDrawRect() and PgDrawIRect() work on the current draw context, while you can specify the draw context dc for PgDrawRectCx() and PgDrawIRectCx().

I’ve never used those functions, but it seems it have to do with the ‘draw context’…

You can read a little more:

qnx.com/developers/docs/6.4. … RECTANGLES

Regards,
JM