Page 1 of 1

Mouse Enter/Leave

Posted: Sun Jul 03, 2005 00:14
by tonyhnz
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.

Re: Mouse Enter/Leave

Posted: Sun Jul 03, 2005 09:46
by CrazyEddie
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.

Re: Mouse Enter/Leave

Posted: Sat Jul 09, 2005 13:51
by mj__
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 :)