Problem with Areas

Hy, I´m using Photon 1.12 under QNX4.25 and I have some troubles.
I´m developping a Graphical Editor (like a Paintbrush for windows) with some electrical symbols.
There is a PtSrcollArea and the symbols can be drawed in this area, until here the application works fine… Now I need to develop a function to allow copy and past blocks of symbols. I tried to create a rect which can be dinamicaly rezised attaching follow function at Raw Event, Event Mask
Ph_EV_PTR_MOTION_BUTTON:

The rect has been drowed correctly but the area ( I´m using Winview to see) begins in the position (0,0) and end in the (pto_end_x, pto_end_y), this can be seeing because the CURSOR_TYPE change to CURSOR_MOVE style.

What can be wrong?

Anyone has any idea to implement this funcionality (copy/paste blocks in the graphical editor)?

I can send my application if it is necessary.

Thanks
Luiz

if(retangulo != NULL)
{
PtDestroyWidget(retangulo);
retangulo = NULL;
}

// THIS POINTS (pto_…_x or y) ARE THE RIGTH VALUE
pontos = (PhPoint_t *) malloc (sizeof(PhPoint_t) * 4);
(pontos+0)->x = pto_begin_x;
(pontos+0)->y = pto_begin_y;
(pontos+1)->x = pto_end_x;
(pontos+1)->y = pto_end_y;

PtSetArg(&args[n++], Pt_ARG_POINTS, pontos, 4);
PtSetArg(&args[n++], Pt_ARG_LINE_WIDTH, 2, 2);
PtSetArg(&args[n++], Pt_ARG_COLOR, Pg_GREEN, 0);
PtSetArg(&args[n++], Pt_ARG_FLAGS, Pt_TRUE, Pt_SET);
PtSetArg(&args[n++], Pt_ARG_CURSOR_TYPE, Ph_CURSOR_MOVE,0);

retangulo = PtCreateWidget(PtRect, ABW_area_visualizacao, n, args);