Widget mouse movement events...

I have a raw widget that I am drawing a scaled scope display in. I am using
independant slider widgets to control the position of markers in side the
window. This is ok, but I’d like to incorporate a click and drag interface
to set time measurement type marks markers, and a single click to set a
voltage scale marker. The single click is easy, however the click and drag
implentation is eluding me. What call back do I use to capture mouse
movement?

PS
Right now I’m using a raw widget with a structure pointed to by to the
user data pointer resource. I would like to turn it into a normal widget
later…

Bob Smith wrote:

I have a raw widget that I am drawing a scaled scope display in. I am using
independant slider widgets to control the position of markers in side the
window. This is ok, but I’d like to incorporate a click and drag interface
to set time measurement type marks markers, and a single click to set a
voltage scale marker. The single click is easy, however the click and drag
implentation is eluding me. What call back do I use to capture mouse
movement?

PS
Right now I’m using a raw widget with a structure pointed to by to the
user data pointer resource. I would like to turn it into a normal widget
later…
\

Hi

You should be able to add a Pt_CB_RAW with the eventmask
Ph_EV_PTR_MOTION_BUTTON
Look at the documentation for PhEvent_t for more information about the
events.

/Johan Björk

Hi

You should be able to add a Pt_CB_RAW with the eventmask
Ph_EV_PTR_MOTION_BUTTON
Look at the documentation for PhEvent_t for more information about the
events.

/Johan Björk

Thanks,

I’ll give it shot…