Keep the cursor inside a window
-
My program has a virtual screen, many times larger than the real screen. In order to navigate on the virtual screen, I use scroll-bars. However I do not like that. I want, that when I move the cursor/mouse to the edge of my window, the window "pans" in the desired direction, and my cursor is re-located to the middle of my window. I know, that this is against "the grain" of windows, because I would imprison the cursor inside my window until I exit my application.... but this is what I want. Anybody...? Thanks Daniela
-
My program has a virtual screen, many times larger than the real screen. In order to navigate on the virtual screen, I use scroll-bars. However I do not like that. I want, that when I move the cursor/mouse to the edge of my window, the window "pans" in the desired direction, and my cursor is re-located to the middle of my window. I know, that this is against "the grain" of windows, because I would imprison the cursor inside my window until I exit my application.... but this is what I want. Anybody...? Thanks Daniela
Check out
ClipCursor()
--Mike-- Latest blog entry: *drool* (Alyson) [May 10] Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber "You have Erica on the brain" - Jon Sagara to me -
My program has a virtual screen, many times larger than the real screen. In order to navigate on the virtual screen, I use scroll-bars. However I do not like that. I want, that when I move the cursor/mouse to the edge of my window, the window "pans" in the desired direction, and my cursor is re-located to the middle of my window. I know, that this is against "the grain" of windows, because I would imprison the cursor inside my window until I exit my application.... but this is what I want. Anybody...? Thanks Daniela