On Tue, 2008-04-15 at 18:04 +0200, Guy wrote: > 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?
Well, I can't really comment on the 3D cursor, but I will certainly be adding normal cursor changing support to osgWidget. I haven't begun to investigate this yet, but I commonly refer to SDL on issues such as these, so I'm sure they have a lot of good example code on how such a thing can be accomplished--and thus, integrated into OSG, if it isn't already. > 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 > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org