Hello, I have no suggestion to solve the problem, but if the functionality to set the default cursor will be added, it should support a 3D cursor too.
That means, hiding the operating system cursor and moving 3D object on the screen space according to the mouse movements. By the way, isn't there some sort of that implementation in osgWidget? Thanks, Guy. ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Beverage Sent: Monday, April 14, 2008 11:18 PM To: osg users Subject: [osg-users] Using Custom Mouse Cursor Hi all, I'm attempting to use OSG embedded in a C# window like hesicong and Glenn Waldron have recently discussed on the osg-users mailing list. One issue that I'm running into is changing the Cursor property on my mouse form. a custom mouse cursor in my form. GraphicsWindowWin32 manages the current cursor as one of the ones defined in the GraphicsWindow::MouseCursor enumeration so I can't use a custom cursor (as far as I can tell). If I set the cursor manually using ::SetCursor, it gets override by GraphicsWindowWin32 because it calls ::SetCursor in response to every WM_SETCURSOR call and passes in _currentCursor. I've tried setting useCursor to false in the traits of the graphics context and calling ::SetCursor on my own, but this causes the cursor to flicker very badly because GraphicsWindowWin32 calls ::SetCursor(NULL) if use cursor is set to false. It seems like there needs to be an option to set a custom cursor by passing in an HCURSOR or a way to say "don't manage the mouse cursor" in the Traits class. Any suggestions? Jason
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

