How to hide titlebar in FrameWindow?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Emtec
Just popping in
Just popping in
Posts: 11
Joined: Tue Aug 05, 2014 15:10

How to hide titlebar in FrameWindow?

Postby Emtec » Thu Jul 16, 2015 07:08

I would like to hide titlebar in FrameWindow. I am using default TaharezLook scheme. From code there is function like:
window_ptr->setTitleBarEnabled(false);

This function causes that titlebar is disable, but is visible, is on top.
I would like to hide it. There is also option to hide it in xml. I have added something like in section FrameWindow:
<Property Name="visible" value="false" />

But after that titlebar is also visible. I think that to solve it there is option to do it in code, in xml and from CEED editor.
There would be the best to know all of this options. If you have any idea please let me know. Thank you very much.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: How to hide titlebar in FrameWindow?

Postby Ident » Thu Jul 16, 2015 14:20

There is the property

Code: Select all

TitlebarEnabled
that you can simply set to false and the titlebar won't be shown. The other setting that might be of interest is

Code: Select all

FrameEnabled
and finally the close button can be hidden with

Code: Select all

CloseButtonEnabled
set to False.
CrazyEddie: "I don't like GUIs"

Emtec
Just popping in
Just popping in
Posts: 11
Joined: Tue Aug 05, 2014 15:10

Re: How to hide titlebar in FrameWindow?

Postby Emtec » Thu Jul 16, 2015 16:13

It's good, because I havent't got bar on the top and exit button, but there is a black bar on the top, like picture below:

https://drive.google.com/file/d/0B00LJKSgQ3vbQWVsZ3BhQUxJZEk/view?usp=sharing


How to spread this blue window to the top bar. I would like to have only window with frame without black title bar.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: How to hide titlebar in FrameWindow?

Postby Ident » Thu Jul 16, 2015 17:26

That's defined in the looknfeel file for TaharezLook, other looks might give you a different result such as Vanilla skin. You would have to edit the looknfeel file.
CrazyEddie: "I don't like GUIs"

Emtec
Just popping in
Just popping in
Posts: 11
Joined: Tue Aug 05, 2014 15:10

Re: How to hide titlebar in FrameWindow?

Postby Emtec » Thu Jul 16, 2015 18:55

Generally that was the question how to do that.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: How to hide titlebar in FrameWindow?

Postby Ident » Thu Jul 16, 2015 19:05

By reading the docs, learning how Falagard skinning works, looking how the Vanilla FrameWindow does it and then applying it to TaharezLook. This is what I would propose. Patches to datafiles are very welcome!

Wiki tutorial: http://cegui.org.uk/wiki/The_Beginners_ ... g_-_Part_I
Docs. http://static.cegui.org.uk/docs/0.8/fal_man.html (temporarily down, because sourceforge)

Feel free to ask us more concrete questions if any come up.
CrazyEddie: "I don't like GUIs"


Return to “Help”

Who is online

Users browsing this forum: Google [Bot] and 3 guests