[osg-users] How to run osgViewer in Windows Form as a control

2010-01-10 Thread Tufan Taş
Hi, I am developing a project on C# and add reference DLL that I coded using C++/CLI. The DLL runs correctly it opens a window and loads the models but I don't want this window to open. I want to insert this view in my C# windows form as a panel control. How can I perform this action? Thank

Re: [osg-users] How to run osgViewer in Windows Form as a control

2010-01-10 Thread Glenn Waldron
Tufan, Read this: http://www.openscenegraph.org/projects/osg/wiki/Support/FAQ#HowdoIembedanOSGviewerina.NETcontrol The control variable is the C# control within which to embed the OSG viewer, typically a Panel. Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 On

Re: [osg-users] How to run osgViewer in Windows Form as a control

2010-01-10 Thread Tufan Taş
I saw that sample but how can I send my control from C# to C++/CLI Cheers, Tufan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=22345#22345 ___ osg-users mailing list

Re: [osg-users] How to run osgViewer in Windows Form as a control

2010-01-10 Thread Tufan Taş
Hi, I try that sample but I get lots of error. Error 1 error C3083: 'GraphicsWindowWin32': the symbol to the left of a '::' must be a type c:\Users\Tufan\Desktop\OpenSceneGraphLibrary\OpenSceneGraphLibrary\OpenSceneGraphLibrary.cpp 42 OpenSceneGraphLibrary Error 2

Re: [osg-users] How to run osgViewer in Windows Form as a control

2010-01-10 Thread Glenn Waldron
Tufan, I would probably derive a custom C++/CLI control (from UserControl) and then reference this custom control in your C# UI. That way you have a nice .NET control wrapping the OSG viewer. Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 On Sun, Jan 10, 2010 at

Re: [osg-users] How to run osgViewer in Windows Form as a control

2010-01-10 Thread Tufan Taş
Hi, Thanks for the advice but what about the crash? I want to load the scene in the first step and then push a button to set the manipulator. But when I push the button the program crashes. And how can I load the model on the scene without any manipulator and then add the manipulator by