Hi Jason, Cursor support in osgViewer is still in it's early days and certainly open to revision to help make it more flexible. Make a suggestion (i.e. modified code) on what would work for you and we can discuss it further. Whichever route we take we'll need to make sure that it works consistently across platforms as far as possible.
Robert. On Mon, Apr 14, 2008 at 10:17 PM, Jason Beverage <[EMAIL PROTECTED]> wrote: > 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 > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

