Any way to confine the mouse pointer to a specified area?

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
vanman
In need of some credit
In need of some credit
Posts: 3
Joined: Sat Sep 18, 2004 10:30 pm
Location: Canada

Any way to confine the mouse pointer to a specified area?

Post by vanman » Tue Oct 05, 2004 10:47 pm

MFC has a ClipCursor function that will confine the mouse pointer to a given area. I was just wondering if wx had this functionality.

Thanks

upCASE
Site Admin
Site Admin
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE » Wed Oct 06, 2004 6:57 am

Hi!
I guess not. Catch mouse events in the window and use WarpPointer().
Neat that this won't work on Macs... "Human Interface Guidelines"... Nice :D
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda

Post Reply