Disabling a Window from receiving an activation?

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

Just popping in
Just popping in
Posts: 6
Joined: Fri Aug 17, 2012 06:22

Disabling a Window from receiving an activation?

Postby Butabah » Tue Dec 04, 2012 03:31


Currently, I do a simple check when I poll input to see if a CEGUI window has an activation status (basically, if any GUI other than the base root (a blank window) ).

Some inputs, like TextEdits, I want to keep the activation status so input can be typed in. Some other things like Buttons when they are clicked are "activated" and hold this flag, but I don't really want them to.

Is there any ways, or properties around this?

Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Thu Dec 01, 2011 14:17

Re: Disabling a Window from receiving an activation?

Postby pav » Sun Dec 09, 2012 15:07

I had the same problem, the only solution I found was:

1. subscribe to the Window::EventActivated event of the windows I don't want to receive focus
2. on the event handler, "queue" a call to activate() on the window that I want to receive the focus instead. This activate() has to be done on the next frame, I think.

If you or anyone has a better solution please say so.

Return to “Help”

Who is online

Users browsing this forum: No registered users and 13 guests