Mouse Enter/Leave

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
tonyhnz
Just popping in
Just popping in
Posts: 12
Joined: Wed Jan 12, 2005 12:06

Mouse Enter/Leave

Postby tonyhnz » Sun Jul 03, 2005 00:14

Edit box testing : (EditBox attached to TabControl attached to DefaultWindow)

Left click within edit box - it gets input.
Left click outside all gui components - on landscape in my case - It does not clear input capture of edit box.

Where this causes me a problem is that I am also processing my own mouse/keyboard events. The gui keeps saying it is processing the key injections even if I have clicked out of the edit box.

Is this working as designed ?

Any ways I can work around it ?

One other weird thing i noticed was that tab text changed as input text was entered. Not sure if I had everything set right.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Mouse Enter/Leave

Postby CrazyEddie » Sun Jul 03, 2005 09:46

Hi,

The reason that it's not deactivated is likely due to whatever you click 'outside' the editbox being a direct ancestor of the editbox itself.

The work around for this is to catch the click event (on the root window for example), and then do:

Code: Select all

myEditbox->deactivate();

Which should give you what you need.

User avatar
mj__
Just popping in
Just popping in
Posts: 1
Joined: Fri Jul 08, 2005 16:55

Re: Mouse Enter/Leave

Postby mj__ » Sat Jul 09, 2005 13:51

I had a similar problem with my console. Check if you inject mouse_button_up events in gui. That was the problem in my case, I only injected button_down :)


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 6 guests