rect
Member
|
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 |
|
Tottel
Member
|
RE: GuiCustom Always at the bottom of Window
Hi,
Call level(..) while creating the Gui Object.
|
|
06-08-2015 11:40 AM |
|
Esenthel
Administrator
|
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 |
|