I am working on an MDI app in .net that uses osg windows embedded in .net forms. The forms are created okay, but I am getting erratic behavior on the key up/down event processing. Sometimes it works, and other times it does not. Here is a link to my VS project (http://www.animatlab.com/OsgNetTest.zip). You may need to change some of the include/lib directories it points to in the project settings in order to get it to compile because mine are in a non-standard location. Also, I am using OSG 2.6.1. I am not sure if it will compile correctly with other versions. When you run the app hit the add button on the toolbar. Each time you do it will create a new embedded window. If you run it in the debugger I have added code to output to the debug window when the key up or down events occur. Open several windows one at a time and test hitting keys each time. Some windows capture the keyboard events, but others do not? It is also apparently totally random which windows will do it. It i s different every time I run the application. Sometimes the first window works fine, but next time it is broken. Also, if a window works then it works for the entire time the app is running regardless of whether a subsequent window is broken. This has to be something to do with the embedding process because my stand-alone windows work just fine. Any suggestions on what could be causing this, or ways to go about testing/fixing it would be greatly appreciated.
Thanks David ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=27241#27241 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

