Hello Thibault, Thibault Genessay wrote:
Hi Paul, [...] I'm glad you updated the example, however I have just one little remark regarding the focus: wouldn't it be surprising in a general purpose GUI that a window (that is, our OSG window) capture the focus when the mouse cursor just hovers it ? In my app, I make a distinction between "focusing" events and "non focusing" events. Mouse clicks give the focus, mouse moves don't. That would make the graphics window behave like other widgets in the GUI.
I agree with the other comments: the focusing behaviour is either to be determined by the window manager and/or it is an application design decision. My main motivation for changing the focusing was to get in line with the standard osgviewer example. There the keyboard focus is directed to the (only) window without having to click in the window. As this is only a simple example demonstrating OSG + wxWidgets integration I think it's best to have something that works just like osgviewer while only demonstrating the GUI integration as the specific addition.
For a real application that, say, might have a text entry field the focus behaviour becomes important, of course. But how focusing is handled is up to the developer in that case. Regards, Paul _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
