Hello,
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?
Disabling a Window from receiving an activation?
Moderators: CEGUI MVP, CEGUI Team
Re: Disabling a Window from receiving an activation?
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.
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.
Who is online
Users browsing this forum: No registered users and 5 guests