canvas position

Hi,

In a PhAB created application, the main window contains a PtRaw. Redraw is
done correctly with the callback, but when I want to animate the widget
using timer it doesn’t draw in the correct area.

I created a function to update the widget I want to do a total redraw of the
widget, in which I call

PtCalcCanvas
PtDamageExtent
PtSuperClassDraw

and then PtClipAdd, draw and PtClipRemove

The whole PtDraw widget has moved up and overdraws the menu as well as the
button bar! The ptCalcCanvas returns the same values in each case.

Why? What Am I missing?

It looks like the region

Are you sure that the PtRaw is placed below the menu (has a y position > 0
inside the window)?
Markus

“Dan” <none@no.spam> wrote in message news:9cbgca$3fh$1@inn.qnx.com

Hi,

In a PhAB created application, the main window contains a PtRaw. Redraw is
done correctly with the callback, but when I want to animate the widget
using timer it doesn’t draw in the correct area.

I created a function to update the widget I want to do a total redraw of
the
widget, in which I call

PtCalcCanvas
PtDamageExtent
PtSuperClassDraw

and then PtClipAdd, draw and PtClipRemove

The whole PtDraw widget has moved up and overdraws the menu as well as the
button bar! The ptCalcCanvas returns the same values in each case.

Why? What Am I missing?

It looks like the region