Mouse Release Event

Hi,
I have an application that has to plot a Bezier curve and let the user drag
the Control Points thereby changing the shape of the Curve. I could
successfully handle the Mouse Down and Mouse Move Events using
Ph_Ev_But_Press
and Ph_Ev_Ptr_Motion_Button. But I could not detect the Mouse Release Event.
I tried using Ph_Ev_But_Release and Ph_Ev_Ptr_Motion_Nobutton.
but they failed.
Any Clues?

Thanks,
Shashank

Shashank wrote:

Hi,
I have an application that has to plot a Bezier curve and let the user drag
the Control Points thereby changing the shape of the Curve. I could
successfully handle the Mouse Down and Mouse Move Events using
Ph_Ev_But_Press
and Ph_Ev_Ptr_Motion_Button. But I could not detect the Mouse Release Event.
I tried using Ph_Ev_But_Release and Ph_Ev_Ptr_Motion_Nobutton.
but they failed.
Any Clues?

You should be able to catch these events just fine. Did you setup the
callbacks with phab or in code? If in code can you post a snippet?

Brian

\


Brian Edmond
QNX Software Systems
briane@qnx.com

Hi,
If I understand correctly, I setup the callbacks in Phab i.e
I used the Pt_Cb_Raw Event available with the PtRaw widget.

Thank You,
Shashank

“Brian Edmond” <briane@qnx.com> wrote in message
news:3CAB63F7.3000000@qnx.com

Shashank wrote:
Hi,
I have an application that has to plot a Bezier curve and let the user
drag
the Control Points thereby changing the shape of the Curve. I could
successfully handle the Mouse Down and Mouse Move Events using
Ph_Ev_But_Press
and Ph_Ev_Ptr_Motion_Button. But I could not detect the Mouse Release
Event.
I tried using Ph_Ev_But_Release and Ph_Ev_Ptr_Motion_Nobutton.
but they failed.
Any Clues?


You should be able to catch these events just fine. Did you setup the
callbacks with phab or in code? If in code can you post a snippet?

Brian

\


Brian Edmond
QNX Software Systems
briane@qnx.com