Roy Berube
05-08-2008 05:19:43
I'm trying to get the kinks ironed out of a Mogre app using MQuickGUI and windows forms. The problem is I can't find a way to capture when the windows form is exiting using the form's closing x icon. The exit handler that should work doesn't get called. Here is a snippet:
public void CreateEventHandler()
{
mRoot.FrameStarted += new FrameListener.FrameStartedHandler(FrameStarted);
//This doesn't ever make the call. Intercepted by qgui?
this.FormClosing += new FormClosingEventHandler(Exit);
//etc. for keyboard and mouse handlers..
This was working just fine when I was using BetaGui. The form does close but the program is left hanging without a proper exit.
Any ideas?
public void CreateEventHandler()
{
mRoot.FrameStarted += new FrameListener.FrameStartedHandler(FrameStarted);
//This doesn't ever make the call. Intercepted by qgui?
this.FormClosing += new FormClosingEventHandler(Exit);
//etc. for keyboard and mouse handlers..
This was working just fine when I was using BetaGui. The form does close but the program is left hanging without a proper exit.
Any ideas?