[SOLVED]Child windows visible after rolling up the parent

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

Savail
Quite a regular
Quite a regular
Posts: 50
Joined: Wed Jul 04, 2012 07:54

[SOLVED]Child windows visible after rolling up the parent

Postby Savail » Thu Jul 19, 2012 16:51

Hey,
It might be a simple problem and solution but so far I couldn't find one. So after rolling up my frame parent window the button I attached to it as a child is still visible.
Image

The button hides only after I dragg the cegui window and then move my mouse over the "x" close button :P. What might be a solution? Would be grateful for help!

Cegui log:

Code: Select all

19/07/2012 18:55:52 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
19/07/2012 18:55:52 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
19/07/2012 18:55:52 (Std)    +                          (http://www.cegui.org.uk/)                         +
19/07/2012 18:55:52 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

19/07/2012 18:55:52 (Std)    CEGUI::Logger singleton created. (00B00E58)
19/07/2012 18:55:52 (Std)    
19/07/2012 18:55:52 (Std)    ********************************************************************************
19/07/2012 18:55:52 (Std)    * Important:                                                                   *
19/07/2012 18:55:52 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
19/07/2012 18:55:52 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
19/07/2012 18:55:52 (Std)    *     support being given; please do not waste our time.                       *
19/07/2012 18:55:52 (Std)    ********************************************************************************
19/07/2012 18:55:52 (Std)    ********************************************************************************
19/07/2012 18:55:52 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
19/07/2012 18:55:52 (Std)    ********************************************************************************
19/07/2012 18:55:52 (Std)    ---- Version 0.7.7 (Build: Jul  3 2012 Microsoft Windows MSVC++ 10.0 32 bit) ----
19/07/2012 18:55:52 (Std)    ---- Renderer module is: CEGUI::Direct3D9Renderer - Official Direct3D 9 based 2nd generation renderer module. ----
19/07/2012 18:55:52 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
19/07/2012 18:55:52 (Std)    ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
19/07/2012 18:55:52 (Std)    ---- Scripting module is: None ----
19/07/2012 18:55:52 (Std)    ********************************************************************************
19/07/2012 18:55:52 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
19/07/2012 18:55:52 (Std)    ********************************************************************************
19/07/2012 18:55:52 (Std)    
19/07/2012 18:55:52 (Std)    ---- Begining CEGUI System initialisation ----
19/07/2012 18:55:52 (Std)    CEGUI::ImagesetManager singleton created (00B133C8)
19/07/2012 18:55:52 (Std)    CEGUI::FontManager singleton created. (00B13640)
19/07/2012 18:55:52 (Std)    CEGUI::WindowFactoryManager singleton created
19/07/2012 18:55:52 (Std)    CEGUI::WindowManager singleton created (00B12808)
19/07/2012 18:55:52 (Std)    CEGUI::SchemeManager singleton created. (00B13928)
19/07/2012 18:55:52 (Std)    CEGUI::MouseCursor singleton created. (00B13110)
19/07/2012 18:55:52 (Std)    CEGUI::GlobalEventSet singleton created. (00B0FFE0)
19/07/2012 18:55:52 (Std)    CEGUI::AnimationManager singleton created (00B145E8)
19/07/2012 18:55:52 (Std)    CEGUI::WidgetLookManager singleton created. (00B14B38)
19/07/2012 18:55:52 (Std)    CEGUI::WindowRendererManager singleton created (00B14A68)
19/07/2012 18:55:52 (Std)    CEGUI::RenderEffectManager singleton created (00B10968)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'DefaultWindow' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'DefaultWindow' windows added. (00B13880)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'DragContainer' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'DragContainer' windows added. (00B15AB8)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'ScrolledContainer' windows added. (00B15C28)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'ClippedContainer' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'ClippedContainer' windows added. (00B16080)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/Checkbox' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/Checkbox' windows added. (00B162B0)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (00B16450)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (00B16668)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (00B16710)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (00B16870)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (00B16A98)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (00B16B40)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (00B16FE0)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (00B171F8)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (00B172A0)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (00B174B8)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (00B177C8)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (00B178C8)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (00B17A28)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (00B17AD0)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (00B17D20)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (00B17E80)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (00B17FE0)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (00B18140)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (00B181E8)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (00B18400)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (00B184A8)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (00B18778)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (00B188D8)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (00B18980)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (00B18A28)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (00B18CF0)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (00B18E50)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (00B18FB0)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'HorizontalLayoutContainer' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'HorizontalLayoutContainer' windows added. (00B19110)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'VerticalLayoutContainer' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'VerticalLayoutContainer' windows added. (00B19370)
19/07/2012 18:55:52 (Std)    Created WindowFactory for 'GridLayoutContainer' windows.
19/07/2012 18:55:52 (Std)    WindowFactory for 'GridLayoutContainer' windows added. (00B19640)
19/07/2012 18:55:52 (Std)    Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
19/07/2012 18:55:52 (Std)    CEGUI::System singleton created. (00B0F8F0)
19/07/2012 18:55:52 (Std)    ---- CEGUI System initialisation completed ----
19/07/2012 18:55:52 (Std)    
19/07/2012 18:55:52 (Std)    Started creation of Scheme from XML specification:
19/07/2012 18:55:52 (Std)    ---- CEGUI GUIScheme name: Game
19/07/2012 18:55:52 (Std)    Started creation of Imageset from XML specification:
19/07/2012 18:55:52 (Std)    ---- CEGUI Imageset name: Game
19/07/2012 18:55:52 (Std)    ---- Source texture file: Game.png in resource group: (Default)
19/07/2012 18:55:52 (Std)    Started creation of Font from XML specification:
19/07/2012 18:55:52 (Std)    ---- CEGUI font name: DejaVuSans-10
19/07/2012 18:55:52 (Std)    ----       Font type: FreeType
19/07/2012 18:55:52 (Std)    ----     Source file: DejaVuSans.ttf in resource group: (Default)
19/07/2012 18:55:52 (Std)    ---- Real point size: 10
19/07/2012 18:55:53 (Std)    ===== Falagard 'root' element: look and feel parsing begins =====
19/07/2012 18:55:53 (Std)    ===== Look and feel parsing completed =====
19/07/2012 18:55:53 (Std)    No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/Button' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/Button' added. (00BC5398)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/Default' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/Default' added. (00BF6E40)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/Editbox' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/Editbox' added. (0130EF30)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/FrameWindow' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/FrameWindow' added. (00BC6918)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/ItemEntry' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/ItemEntry' added. (00B40C18)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/ListHeader' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/ListHeader' added. (00BFCB90)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/ListHeaderSegment' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/ListHeaderSegment' added. (00B40CC0)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/Listbox' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/Listbox' added. (012FD5D8)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/Menubar' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/Menubar' added. (00BC4BC0)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/MenuItem' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/MenuItem' added. (00BC4C68)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/MultiColumnList' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/MultiColumnList' added. (00BC4DC8)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/MultiLineEditbox' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/MultiLineEditbox' added. (00B1E358)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/PopupMenu' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/PopupMenu' added. (00B1E4B8)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/ProgressBar' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/ProgressBar' added. (00B1E618)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/ScrollablePane' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/ScrollablePane' added. (00B1E8E8)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/Scrollbar' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/Scrollbar' added. (00B1E990)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/Slider' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/Slider' added. (00B1A4A8)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/Static' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/Static' added. (00B1A608)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/StaticImage' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/StaticImage' added. (00B1A6B0)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/StaticText' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/StaticText' added. (00B1A810)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/SystemButton' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/SystemButton' added. (00B1AB98)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/TabButton' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/TabButton' added. (012F9BF8)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/TabControl' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/TabControl' added. (012F9CA0)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/Titlebar' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/Titlebar' added. (012F9F70)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/ToggleButton' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/ToggleButton' added. (012FA018)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/Tooltip' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/Tooltip' added. (012FA0C0)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/ItemListbox' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/ItemListbox' added. (012FA220)
19/07/2012 18:55:53 (Std)    Created WindowRendererFactory for 'Falagard/Tree' WindowRenderers.
19/07/2012 18:55:53 (Std)    WindowRendererFactory 'Falagard/Tree' added. (012FA2C8)
19/07/2012 18:55:53 (Std)    Creating falagard mapping for type 'Game/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'Game/Button' and RenderEffect ''. (0012D67C)
19/07/2012 18:55:53 (Std)    Creating falagard mapping for type 'Game/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'Game/ImageButton' and RenderEffect ''. (0012D67C)
19/07/2012 18:55:53 (Std)    Creating falagard mapping for type 'Game/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' Look'N'Feel 'Game/FrameWindow' and RenderEffect ''. (0012D67C)
19/07/2012 18:55:53 (Std)    Creating falagard mapping for type 'Game/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' Look'N'Feel 'Game/Titlebar' and RenderEffect ''. (0012D67C)
19/07/2012 18:55:53 (Std)    Started creation of Font from XML specification:
19/07/2012 18:55:53 (Std)    ---- CEGUI font name: DejaVuSans-10
19/07/2012 18:55:53 (Std)    ----       Font type: FreeType
19/07/2012 18:55:53 (Std)    ----     Source file: DejaVuSans.ttf in resource group: (Default)
19/07/2012 18:55:53 (Std)    ---- Real point size: 10
19/07/2012 18:55:53 (Std)    ---- Returning existing instance of Font named 'DejaVuSans-10'.
19/07/2012 18:55:53 (Error)   CEGUI::UnknownObjectException in file ..\..\..\cegui\src\CEGUIPropertySet.cpp(125) : There is no Property named '' available in the set.
19/07/2012 18:55:54 (Std)    Attempting to create Imageset 'DejaVuSans-10_auto_glyph_images_ ' with texture only.

hmm just noticed there's one error in the log but during my applicaion's runtime I don't recognize any problems :P
Last edited by Savail on Sat Jul 21, 2012 21:17, edited 1 time in total.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Child windows still visible after rolling up the parent

Postby CrazyEddie » Fri Jul 20, 2012 08:20

Hi,

This looks like a bug, though I ran a couple of quick tests and couldn't reproduce it. This doesn't necessarily mean it's not a bug, or that you are doing something wrong to cause it - it just means that you're doing something in a way that is different enough to cause some variation in behaviour from what I did in the tests.

Can you post the code or layout where you create the frame window and button. Also, when you do the roll up, is that by double clicking the titlebar, or are you doing that in code?

You should definitely investigate the source of the Property error in the log, though it is likely unrelated to this roll up issue.

CE.

Savail
Quite a regular
Quite a regular
Posts: 50
Joined: Wed Jul 04, 2012 07:54

Re: Child windows still visible after rolling up the parent

Postby Savail » Fri Jul 20, 2012 08:38

thansk for reply,
This is my window creation function:

Code: Select all

bool Gui::CreateGUIWindow(windows Parent, std::vector<windows> Controls)
{
   using namespace CEGUI;

   WindowManager& wmgr = WindowManager::getSingleton();
   FrameWindow* fWnd = NULL;
   if(sizeof(Parent) != 0)
   {
      fWnd = static_cast<FrameWindow*>(wmgr.createWindow( Parent.type, Parent.name ));
      System::getSingleton().getGUISheet()->addChildWindow( fWnd );
      // position a quarter of the way in from the top-left of parent.
      fWnd->setPosition( Parent.pos );
      // set size to be half the size of the parent
      fWnd->setSize( Parent.size );

      fWnd->setText(Parent.text);

      Parent.Events(fWnd);
   }

   for(int i = 0; i < Controls.size(); i++)
   {
      CEGUI::Window *Wnd = NULL;

      Wnd = static_cast<FrameWindow*>(wmgr.createWindow(Controls[i].type, Controls[i].name));  // Create Window
      Wnd->setPosition(Controls[i].pos);
      Wnd->setSize(Controls[i].size);

      if(sizeof(Parent) == 0)
         System::getSingleton().getGUISheet()->addChildWindow(Wnd);
      else
         fWnd->addChildWindow(Wnd);
      
      Wnd->setText(Controls[i].text);
      
      Controls[i].Events(Wnd);
   }
   return true;
}

If I want to create a window I call this function only once and windows is the class I created which contains some info about the window being created. windows::Events(CEGUI::Window *handle) is a callback function that stores inside different event subscriptions for different windows. Atm it's actually empty, just for clarity. So if I pass an object as a parent parameter

Code: Select all

if(sizeof(Parent) == 0)
I create a parent and all objects in Controls paremeter are supposed to be his children. That's how I made it up :P

EDIT: Sorry, forgot sth. To roll up I just double click the title bar and for now I'm using just the normal TaharezLook/FrameWindow without any layouts, I think so at least :P

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Child windows still visible after rolling up the parent

Postby CrazyEddie » Fri Jul 20, 2012 10:04

The code seems ok - aside from the fact you cast everything to FrameWindow, which is a mistake, especially since you're not using any FrameWindow specific calls, you can just use the base CEGUI::Window* there and it will work the same.

I suspect this issue is renderer specific, I've tested on OpenGL and seen no issue. I must therefore ask that you give me some time to test on D3D9 also - I'll try and do it over the weekend, but Windows and Direct3D are not my primary platform.

In the mean time, you might be able to work around this by calling:

Code: Select all

myFrameWindow->invalidate(true)

on the frame window after the roll up has occurred. I will stress that you should not have to do this, and it should be considered a temporary fix until I can test, reproduce and fix the real cause of the issue (if there is one).

CE.

Savail
Quite a regular
Quite a regular
Posts: 50
Joined: Wed Jul 04, 2012 07:54

Re: Child windows still visible after rolling up the parent

Postby Savail » Fri Jul 20, 2012 10:50

thanks a lot for taking efforts and time to resolve the problem! I'll try to figure it out also and if I manage to find the solution I'll post it here undoubtedly

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Child windows still visible after rolling up the parent

Postby CrazyEddie » Sat Jul 21, 2012 08:55

Hi,

I was able to make a test case where the issue you reported could be reliably reproduced (on all systems), and have now committed a fix for the issue. Obviously this does not update your 0.7.7 package, so you have the choice of cloning the mercurial repository and updating to the v0-7 stable branch (then copy your dependencies, premake.exe and config.lua files over - everything else will work the same), or applying the change locally to your 0.7.7 code files, if you want to do that, the changeset is this: http://crayzedsgui.hg.sourceforge.net/h ... 789e542acc

Hope this helps, and thanks for reporting this issue :)

CE.

Savail
Quite a regular
Quite a regular
Posts: 50
Joined: Wed Jul 04, 2012 07:54

Re: Child windows still visible after rolling up the parent

Postby Savail » Sat Jul 21, 2012 12:32

thanks a lot for fixing that! However im not very familiar with Merculiar yet and got quite lost. I guess all I need to update my cegui now is type those 3 commands in my command line:

Code: Select all

hg clone http://crayzedsgui.hg.sourceforge.net/hgroot/crayzedsgui/cegui_mk2
hg update -C v0-7
hg pull -u

I found them here: http://www.cegui.org.uk/phpBB2/viewtopic.php?f=10&t=5420
so I've managed to run the first command successfully I guess but the second and third fail for me :(. I get such output:
Image

edit:
ok, I ran additional following commands and now the second command works:

Code: Select all

D:\Mercurial_hg_files>hg pull http://crayzedsgui.hg.sourceforge.net/hgweb/crayze
dsgui/cegui_mk2/shortlog/4ec167d13e1d
real URL is http://crayzedsgui.hg.sourceforge.net:8000/hgroot/crayzedsgui/cegui_
mk2/shortlog/4ec167d13e1d
pulling from http://crayzedsgui.hg.sourceforge.net/hgweb/crayzedsgui/cegui_mk2/s
hortlog/4ec167d13e1d
requesting all changes
adding changesets
adding manifests
adding file changes
added 3475 changesets with 25697 changes to 5503 files
(run 'hg update' to get a working copy)

D:\Mercurial_hg_files>hg update
1611 files updated, 0 files merged, 0 files removed, 0 files unresolved

D:\Mercurial_hg_files>hg update -C v0-7
1603 files updated, 0 files merged, 1511 files removed, 0 files unresolved

D:\Mercurial_hg_files>hg pull -u
abort: repository default not found!

but the last command doesn't work :/

I've tried setting the default repository path in hgrc file, which is looking now like this:

Code: Select all

[extensions]
eol =
[paths]
default = http://crayzedsgui.hg.sourceforge.net/hgroot/crayzedsgui/cegui_mk2

but it didn't work ;/

I would be very grateful for help!

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Child windows still visible after rolling up the parent

Postby CrazyEddie » Sat Jul 21, 2012 17:10

Based on your cmd.exe screenshot, all your troubles likely stem from two things. First you you did:

Code: Select all

hg init

in the directory you created - you likely did not want to do this. hg init initialises a directory as a local repository.

The second issue is that the other commands you issued (like hg update -C v0-7), you did from the outer directory, and not the 'cegui_mk2' directory that you cloned from the master repo.

So:

Code: Select all

hg clone http://crayzedsgui.hg.sourceforge.net/hgroot/crayzedsgui/cegui_mk2
cd cegui_mk2
hg update -C v0-7

should be all you need.

HTH

CE.

Savail
Quite a regular
Quite a regular
Posts: 50
Joined: Wed Jul 04, 2012 07:54

Re: Child windows still visible after rolling up the parent

Postby Savail » Sat Jul 21, 2012 19:09

hmm sorry I ask so many questions and take your time :? and thanks for your all answers, but it seems that the bug still exists or I'm still doing something wrong with updating cegui.
So I typed the commands you mentioned and succeeded thansk to you!Then I moved all the content of newly created folder to my root cegui's directory and replaced all the files. And when I ran my game the bug was still there. I've tried also to update the code manually - replaced

Code: Select all

notifyClippingChanged();
with

Code: Select all

notifyScreenAreaChanged();
in cegui/src/elements/CEGUIFrameWindow.cpp.

Sorry I cause so much trouble a bit but I really like all the CEGUI system and would like to use it. On the first sight it seemed a bit complex but after reading all tutorials I see it's so logic and well designed and suits my game perfectly! Hopefully I'm still not doing enough to update it or doing something wrong?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Child windows still visible after rolling up the parent

Postby CrazyEddie » Sat Jul 21, 2012 20:17

Ok, I gotta ask a dumb question, so don't take offense if this is obvious ;)

After rebuilding the new cegui code, are you remembering to copy the new DLLs to wherever you main app is loading them from? :)

CE.

Savail
Quite a regular
Quite a regular
Posts: 50
Joined: Wed Jul 04, 2012 07:54

Re: Child windows still visible after rolling up the parent

Postby Savail » Sat Jul 21, 2012 20:27

wait, maybe I'm really dumb :P. I'm really bad at setuping new libraries and matters connected with this :P. So what should I actually do with the folder I download from repository? I should totally replace it with my current cegui files and setup cegui again just as I did first time, I mean run the solution in premake directory?

Yeah! :D It works now perfectly as was supposed to be. This experience will surely prove beneficial in my future. Thanks a lot ^^ CE and all CEGUI developers!

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: [SOLVED]Child windows visible after rolling up the paren

Postby CrazyEddie » Sun Jul 22, 2012 08:18

:lol:

I'm glad you have it working.

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 4 guests