Page 1 of 1

Minimizing windows

Posted: Mon Mar 12, 2007 3:08 am
by khamill
Hi Guys,

I see the engine has a setResizeable method for Irrlicht windows. Is there a similar method for minimizing windows? I've noticed that when I use the setResizeable, the minimize functionality is shown but grayed out.

I want full windows functionality.

thanks

Kevin

Posted: Mon Mar 12, 2007 5:05 am
by vitek
You are probably thinking of the function IrrlichtDevice::setResizeAble(). If you want the app to be minimizable, you would need to change the source code in the Irrlicht device [CIrrlichtDeviceWin32.cpp]. Simply pass a WS_MINIMIZEBOX flag to the CreateWindow() function call and rebuild Irrlicht.

Travis

Posted: Mon Mar 12, 2007 3:35 pm
by khamill
This seems like a bit of a stretch for something so basic, but I will give it a try...

Call me crazy, bit I didn't think I was going to have to change the baseline to minimize a window...

thanks

Kevin

Posted: Mon Mar 12, 2007 8:46 pm
by khamill
Thanks Travis,

I added a line to the device code as you said and now I have minimizing windows.

thanks

Kevin