[osg-users] Closing Windows

2009-02-09 Thread R. Morris
In my app I'm opening a window for username and password and I need to close it after a button is pushed. so far my efforts with pushing an escape key event to the eventqueue, or the simpler viewer.setDone(true) haven't forced the window to close. it is important to know that I'm using an osgWidget

Re: [osg-users] Closing Windows

2009-02-10 Thread R. Morris
Thanks for the responses, this is the basic code I'm using, there's more to it but this is the pertinent stuff: rViewer = new osgViewer::Viewer(); wm = new osgWidget::WindowManager( rViewer, 500.0f, 500.0f, MASK_2D, osgWidget::WindowManager::PD_NONE

Re: [osg-users] Closing Windows

2009-02-11 Thread R. Morris
The code works fine. I'm trying to figure out how to close the window once box3 is clicked. The callback on the box is fine, it calls other functions without issue, I just don't know how to force the window to close via code. The ESC works, just need to do it via something like rViewer->isDone(true

Re: [osg-users] Closing Windows

2009-02-12 Thread R. Morris
Thanks! I'll give it a shot when I get home. I feel like I was on the right path just didn't arrive at the osgViewer::Viewer::Windows route. Hopefully this will work! -Russ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.opensce