PS> Most of that I have already done, but the bit that I am getting stuck on is
PS> that when I enter camera mode, I want to hide the cursor and constrain it
PS> from leaving the window.
To hide the cursor, you need to use wxCursor(wxCURSOR_BLANK) I believe.
And while it isn't really possible to constrain the mouse with a single
call, you should capture it using wxWindow::CaptureMouse() as this will
allow you to receive mouse events even when the mouse is outside your
window and you will also be able to call WarpPointer() to move it back
inside (although this is not recommended). Notice that you should also be
ready to handle wxEVT_MOUSE_CAPTURE_CHANGED events if you capture the mouse
to react adequately (e.g. exit your camera mode) if another window breaks
the capture.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-u...@lists.wxwidgets.org
For additional commands, e-mail: wx-use...@lists.wxwidgets.org
On Sat, 17 Nov 2007 15:20:53 +0000 Patrick Steele <steele....@gmail.com> wrote:
PS> Most of that I have already done, but the bit that I am getting stuck on is
PS> HCURSOR hcursor = ::LoadCursor(stdCursor.isStd ? NULL : wxGetInstance(),
PS> stdCursor.name);
PS>
PS> where isStd = false, and name = WXCURSOR_BLANK, ends up giving hcursor =
PS> NULL
This means you didn't include "wx/msw/wx.rc" in your project as this is
where this cursor is defined.
On Sat, 17 Nov 2007 15:55:59 +0000 Patrick Steele <steele....@gmail.com> wrote:
PS> HCURSOR hcursor = ::LoadCursor(stdCursor.isStd ? NULL : wxGetInstance(),
PS> stdCursor.name);
PS>
PS> where isStd = false, and name = WXCURSOR_BLANK, ends up giving hcursor =
PS> NULL
This means you didn't include "wx/msw/wx.rc" in your project as this is
where this cursor is defined.