Hi,
I've been searching for something similar to GetFocus() in windows to get the current window, in order to see if it has input focus, and if so, to not activate keyboard short-cuts while in an edit box.
I tried using CEGUI::Window::getCaptureWindow but it doesn't seem to work. I also saw there's a getKeyboardTargetWindow() in CEGUI::System but it 's private, and I can't access it, and overriding that gives me a link error for the precompiled libs.
We're also using CEGUI 0.6.2 now, so I think we're up to date.
CEGUI function similar to Windows' GetFocus() ?
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi,
Starting from the GUI root (or some other window), call the Window::getActiveChild function.
If it's just a single, specific editbox, then calling it's local "isActive" function will have the same effect.
HTH
CE.
Starting from the GUI root (or some other window), call the Window::getActiveChild function.
If it's just a single, specific editbox, then calling it's local "isActive" function will have the same effect.
HTH
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 11 guests