Page 1 of 1

How can I close the stats and titles bar?

Posted: Thu Jan 11, 2007 4:02 am
by giuseppegam
How can I do to no appear the stats and titles bar , how to close, minimise it? etc?

Posted: Thu Jan 11, 2007 5:21 am
by metaltailz
Do mean making the game window have a minimize, maximize and close button?

Posted: Thu Jan 11, 2007 5:23 am
by a_haouchar
you mean fullscreen, so you cant see anything in the background?

Posted: Thu Jan 11, 2007 11:39 am
by giuseppegam
I would like to remove the bar of headings, where he is to close, the game this in windows mode, not fullscreen, would only like the internal part of the window.


the bar that I am saying is where it is this text here.
device->setWindowCaption(L"MMORPG - GAM .:: Versao Cliente TEST");

Posted: Thu Jan 11, 2007 4:03 pm
by Thomas_
Oh, i think he wants just the canvas area of the window to draw, not the frame at all... not sure how to do that either....

Posted: Thu Jan 11, 2007 4:13 pm
by vitek
You would need to modify the device class for your platform so that the window is created without a title bar. For the CIrrDeviceWin32 class, you would need to remove the WS_CAPTION window style.

Of course this means you need to recompile Irrlicht. If you want to do this you'll have to install the DirectX SDK also.

Travis

Posted: Thu Jan 11, 2007 4:24 pm
by sio2
Look at the Win32Window sample in the Irrlicht SDK. Basically, create your own window and pass the HWND to irr::createDeviceEx() function. This way you can have your own window as you wish and not have to recompile the Irrlicht dll.

Posted: Thu Jan 11, 2007 6:32 pm
by Spintz
Just removing WS_CAPTION will not work. Use the following style for the window you want -

Code: Select all

style = WS_DLGFRAME | WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
This will give you a window like the one in the middle of this screenshot -

Image

Posted: Thu Jan 11, 2007 6:48 pm
by vitek
Thanks Spintz. I thing sio2 has the best solution. Unfortunately that requires the user know a little win32 programming to get it done.

Travis