From: Jouke V. <jo...@pv...> - 2003-08-05 10:20:05
|
Hello, I'm fiddling around with the CaptureMouse method, and would like to let a user start/stop capturing the mouse by using a menu entry. This menu entry responds to F2 (or just by clicking it). However, I call the CaptureMouse on a Wx::Panel that is a part of a Wx::Frame. I thought I would still be able to access the menu I created on my Wx::Frame. That doesn't seem to be the case (I can't even close the application by clicking in the upper right corner (the X)). Then I thought the menu-entry also responded to the F2 key (I *can* start capturing by pressing F2), so disabling the CaptureMouse (by calling ReleaseMouse when that menu-entry is accessed) shouldn't be that difficult. However, it seems that CaptureMouse disables the keyboard shortcuts too. I've even tried to set up an EVT_CHAR, but that doesn't work either when CaptureMouse is active. Is this a bug? I can't find anything on it on the web. Jouke -- -------------------------------------------------------------------- | pVoice : http://www.pvoice.org | mail : jo...@pv...| | Personal: http://jouke.pvoice.org | phone: +31 6 41813351 | | Resume : http://jouke.pvoice.org/cv.html | fax : +31 10 2430717 | -------------------------------------------------------------------- |