Silly Mouse Tricks...

bridged with qdn.public.photon
Post Reply
Bob Smith

Silly Mouse Tricks...

Post by Bob Smith » Wed Dec 17, 2003 6:08 pm

....Ok, I've seen apps that you can for instance click in a window drag out a
line and the line still responds when the cursor is moved out of the window.
Or for instance you can click on the a slide control and even if you move
out of the window you can still move it up and down.
I want to be able to set cursors and not have it freeze up if I move off
the widget or out of the window how do I capture those mouse events once
I've moved out of my widget?

Wojtek Lerch

Re: Silly Mouse Tricks...

Post by Wojtek Lerch » Wed Dec 17, 2003 6:33 pm

Bob Smith wrote:
...Ok, I've seen apps that you can for instance click in a window drag out a
line and the line still responds when the cursor is moved out of the window.
Or for instance you can click on the a slide control and even if you move
out of the window you can still move it up and down.
I want to be able to set cursors and not have it freeze up if I move off
the widget or out of the window how do I capture those mouse events once
I've moved out of my widget?
Use drag events. Look up PhInitDrag() in the docs and follow the See
Also link to "Dragging" in the Programmer's Guide.

Guest

Re: Silly Mouse Tricks...

Post by Guest » Fri Dec 19, 2003 2:04 am

bobsmith@home.com sed in <brq4t9$o3o$1@inn.qnx.com>:
I want to be able to set cursors and not have it freeze up if I move off
the widget or out of the window how do I capture those mouse events once
Point Grabbing by the widget during buttonpress
is a standard GUI design guide since Macintosh, Motif, Windows
(roots from Presentation Manager?)

Note that ungrabbing once outside the widget is VERY nonstandard, so
don't implement it for generic GUI targetting "normal" users.
--
kabe

Post Reply

Return to “qdn.public.photon”