Silly Mouse Tricks...

…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?

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.

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