About Store Forum Documentation Contact



Post Reply 
GuiCustom Always at the bottom of Window
Author Message
rect Offline
Member

Post: #1
GuiCustom Always at the bottom of Window
Hi all.

I found the GuiCustom default _base_level is 0.
the Window default _base_level is 1.

so if at my Gui have a GuiCustom and a Window,the GuiCustom Always at the bottom of Window..like it:

   

1.Why is designed so?
2.if I want to make up the GuiCustom,how can i do?(call moveUp is invalid)

thanks..
(This post was last modified: 06-08-2015 10:48 AM by rect.)
06-08-2015 10:35 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #2
RE: GuiCustom Always at the bottom of Window
Hi,

Call level(..) while creating the Gui Object.
06-08-2015 11:40 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: GuiCustom Always at the bottom of Window
Hello!

You can just make a custom class based on Window instead of GuiCustom, and use Window.level to make it always on top of other windows.

Having source you could modify the "gui object.h" header
#ifdef EE_PRIVATE
GuiObj& baseLevel( Int level ); Int baseLevel ()C {return _base_level ;} // set/get base level
#endif
and just remove the #ifdef EE_PRIVATE #endif to make the method public, and run "Esenthel Builder" following steps afterwards:
-"Headers"
-"Code Editor"
06-11-2015 12:56 AM
Find all posts by this user Quote this message in a reply
Post Reply