[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 Robert Osfield
Hi Russ, What type of window are we talking about here? A conventional Win32/X11/Carbon/Coaca window with conventional 2D GUI, or a osgWidget GUI? Robert. On Tue, Feb 10, 2009 at 3:56 AM, R. Morris wrote: > In my app I'm opening a window for username and password and I need to > close it after

Re: [osg-users] Closing Windows

2009-02-10 Thread Jeremy Moles
On Mon, 2009-02-09 at 19:56 -0800, R. Morris wrote: > 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 t

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 Jeremy Moles
I'm afraid I still don't understand exactly what you're describing. There is nothing wrong with the code below, other than the fact you're creating a Viewer object on the heap (requiring you to manually delete it before main() returns). I'm still not even entirely sure if the problem is related to

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 dimi christop
penSceneGraph Users Sent: Wednesday, February 11, 2009 9:40:37 PM Subject: Re: [osg-users] Closing Windows 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 h

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