Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

26. May 2012, 09:35:50 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Unable to close tests
Pages: [1]
Print
Author Topic: Unable to close tests  (Read 769 times)
Patheros
Getting respectable
***
Offline Offline

Posts: 267


Dead Dolphin


View Profile WWW Email
« on: 15. April 2007, 04:49:42 pm »

If I run any of the test's mains, (not using the TestLauncher), clicking on the X in the window does not close them. I'm running XP.
Logged

"I like my method, what was my method again?" - Jon
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 15. April 2007, 05:14:34 pm »

If I run any of the test's mains, (not using the TestLauncher), clicking on the X in the window does not close them. I'm running XP.

This has nothing to do with the fact, that you're not using the launcher, but the mains. I changed this behavior some weeks ago for reasons of better abstraction and to make all OpenGLLayers behave the same. Previously there was an AWT window listener added to the containing Frame for the AWT GLCanvas. This listener executed a simple System.exit( 0 ); which was evil. Now you have much better control over the x-clicked-event (or you even HAVE constrol over it now). And you have the same control over it for all OpenGLLayers. Simply to this to get the (nearly) the same behavior as before:

Code:
canvas.addWindowClosingListener( new WindowClosingListener()
{
    public void onWindowCloseRequested(Canvas3D canvas)
    {
        MyRenderLoopExtension.this.end();
    }
} );

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic