Page 1 of 1

[Solved] ghost window on back layer: need Pass Through

Posted: Sun May 10, 2009 12:40
by fixus971
Hi to all. I'm working hard on CEGUI but now dont'found a solution for a layout problem..

My program auto generate all elements by code (no external files or schema)

I have a "Debug" FrameWindow on root and need it always visible and usable.
and a "GameGUI" DefaultWindow on it with default parameters to use as GUI elements page container (not overlayed to Debug).

Debug is always visible but as a ghost and I can't click or move it.

Can I make "GameGUI" DefaultWindow background trasparent for events to get access to "Debug" window?

I tried setModalState setClipped distributesCapturedInputs but not work.

Can you help me?

Thanks.

Re: ghost window on root because free DefaultWindow on front

Posted: Fri May 15, 2009 00:51
by earthsruler
Im not sure I understand, but i'll try to help :).

If you want the backgroud to not be visible set the BackgroundEnabled property. If you do that you also may want to set the FrameEnabled property aswell.

However it seems to me that you want mouse clicks to get through to the debug window? If so you can set the MousePassThroughEnabled property to true on the GameGUI window.

You might also like this link:
http://www.cegui.org.uk/wiki/index.php/SetProperty

HTH.

ER.

Re: ghost window on root because free DefaultWindow on front

Posted: Fri May 15, 2009 10:44
by fixus971
Thanks for your reply earthsruler :)
:D You understand my problem and give me a good explanation:
This night I'll try MousePassThroughEnabled. :idea:
Thanks!! :wink:

[Solved] ghost window on back layer: need Pass Through Enabl

Posted: Sun May 17, 2009 08:09
by fixus971
Hi. I try and all run well! :D

For a complete information, for others friends..

I'm found and used this code that begin with set..
:idea:

Code: Select all

fw->setMousePassThroughEnabled(true);
:idea:

Thanks Again :wink: