Mouse Focus

Vadim Zeitlin vadim at wxwidgets.org
Fri Apr 4 08:28:41 PDT 2008


On Fri, 4 Apr 2008 16:25:44 +0100 Declan McMullen <declan.mcmullen at gmail.com> wrote:

DM> I'm looking to replicate vmware style behaviour when it comes to mouse
DM> capturing. I want my widgets program to capture the mouse and lock it inside
DM> the panel.

 There is no equivalent of Win32 TrackMouseEvent() in wx so you're going to
have trouble doing this efficiently.

DM> I tried using the CaptureMouse() method but instead of moving the mouse into
DM> my window it brought up a windows wait mouse pointer, the egg timer.

 CaptureMouse() doesn't move mouse at all (WarpPointer() does this) but
neither does it change the cursor.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/



More information about the wx-users mailing list