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

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

User avatar
fixus971
Just popping in
Just popping in
Posts: 7
Joined: Thu Mar 19, 2009 07:28
Location: Italy, Monza
Contact:

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

Postby fixus971 » Sun May 10, 2009 12:40

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.
Last edited by fixus971 on Sun May 17, 2009 08:16, edited 1 time in total.
Il calcolatore è straordinariamente veloce, accurato e stupido.
Gli uomini sono incredibilmente lenti, imprecisi e creativi.
L'insieme dei due costituisce una forza incalcolabile. (Albert Einstein)

earthsruler
Quite a regular
Quite a regular
Posts: 74
Joined: Mon Apr 28, 2008 23:21
Location: Australia

Re: ghost window on root because free DefaultWindow on front

Postby earthsruler » Fri May 15, 2009 00:51

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.

User avatar
fixus971
Just popping in
Just popping in
Posts: 7
Joined: Thu Mar 19, 2009 07:28
Location: Italy, Monza
Contact:

Re: ghost window on root because free DefaultWindow on front

Postby fixus971 » Fri May 15, 2009 10:44

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:
Il calcolatore è straordinariamente veloce, accurato e stupido.
Gli uomini sono incredibilmente lenti, imprecisi e creativi.
L'insieme dei due costituisce una forza incalcolabile. (Albert Einstein)

User avatar
fixus971
Just popping in
Just popping in
Posts: 7
Joined: Thu Mar 19, 2009 07:28
Location: Italy, Monza
Contact:

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

Postby fixus971 » Sun May 17, 2009 08:09

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:
Il calcolatore è straordinariamente veloce, accurato e stupido.
Gli uomini sono incredibilmente lenti, imprecisi e creativi.
L'insieme dei due costituisce una forza incalcolabile. (Albert Einstein)


Return to “Help”

Who is online

Users browsing this forum: No registered users and 13 guests