Avoid that the mouse go outside of a frame
Reinhard Pagitsch
rprp at gmx.net
Mon Nov 26 00:42:23 PST 2007
Bryan Petty wrote:
> On 11/25/07, Reinhard Pagitsch <rprp at gmx.net> wrote:
>> Is there a function/method that I can use to avoid that the mouse cursor
>> go out of my window?
>
> This is typically undesirable behavior and isn't possible under Mac OS
> X, but could be done using wxWindow::WarpPointer on other platforms.
>
> Alternatively, you might actually want to use wxWindow::CaptureMouse
> for what you are using this for.
Do you have an example of the wxWindow::CaptureMouse method? I want to
use it in a wxFrame.
Thank you,
Reinhard
--
More information about the wx-users
mailing list