Skip navigation.
Home
The QNX Community Portal

View topic - Catch the mouse-drag

Catch the mouse-drag

Isn't the name clear?

Catch the mouse-drag

Postby analyser » Mon Jul 20, 2009 10:40 am

I would ask help, how I shall catch -permanently, while mouse over a widget with pushed left button- it the mouse-drag event while the left button is active. I remembered so, i saw it the HELP a mouse draw sample code, but I do not find it now when I am looking for it. Thank you.
analyser
Active Member
 
Posts: 42
Joined: Sat Sep 08, 2007 9:05 am
Location: Hungary

RE: Catch the mouse-drag

Postby micro » Mon Jul 20, 2009 6:15 pm

THe example should be somewhere near PhDrag afaik...
Actually a Drag Event stops being a Drag Event as soon as you do not push your left mousebutton anymore..
micro
Senior Member
 
Posts: 458
Joined: Thu Jul 22, 2004 8:41 pm

RE: Catch the mouse-drag

Postby analyser » Mon Jul 20, 2009 7:05 pm

Thank you, SOLVED.

The key is: Ph_EV_PTR_MOTION_BUTTON

From the Help: "Emitted when the user moves the pointing device while pressing a button."

illes
analyser
Active Member
 
Posts: 42
Joined: Sat Sep 08, 2007 9:05 am
Location: Hungary

RE: Catch the mouse-drag

Postby analyser » Mon Jul 20, 2009 7:29 pm

I take a complete sample project (QNX 6.4.1 Momentics). In the Appbuilder, when add RAW callback, set events:
Image
Image

Have fun!
illes
http://www.rs485.hu
Attachments
MouseDragTest.zip
(38.88 KiB) Downloaded 134 times
analyser
Active Member
 
Posts: 42
Joined: Sat Sep 08, 2007 9:05 am
Location: Hungary


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 1 guest