How can I close the stats and titles bar?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
giuseppegam
Posts: 39
Joined: Thu Jan 11, 2007 2:45 am

How can I close the stats and titles bar?

Post by giuseppegam »

How can I do to no appear the stats and titles bar , how to close, minimise it? etc?
metaltailz
Posts: 6
Joined: Sat Dec 30, 2006 5:26 am
Contact:

Post by metaltailz »

Do mean making the game window have a minimize, maximize and close button?
a_haouchar
Posts: 97
Joined: Sat Oct 14, 2006 10:51 am
Location: Australia,melbourne

Post by a_haouchar »

you mean fullscreen, so you cant see anything in the background?
giuseppegam
Posts: 39
Joined: Thu Jan 11, 2007 2:45 am

Post 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");
Thomas_
Posts: 34
Joined: Mon May 08, 2006 1:51 am
Location: Corvallis/Eugene, Oregon

Post 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....
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post 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
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post 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.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post 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
Image
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post 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
Post Reply