Page 1 of 1

[SOLVED]Combobox MouseMoveEvent

Posted: Sat Oct 10, 2009 15:13
by Tiblanc
Hi all!

I'm trying to display some information when the player hovers a Combobox. This is how I'm subscribing to the event :

Code: Select all

        lShieldLayer->subscribeEvent(CEGUI::Combobox::EventMouseMove, CEGUI::Event::Subscriber(&GUITemplateEdit::ShieldCombobox_OnMouseMove, this));


I never get any event when I move the mouse over the combobox. I'm also subscribing for EventMouseMove on the DropList and this one works fine. It seems to me like the combobox does not fire the mouse move events for some reason. Is there a problem in my configuration or is this a bug?

Thanks!

Re: Conbobox MouseMoveEvent

Posted: Sat Oct 10, 2009 17:58
by CrazyEddie
Hi

This is another issue that's definitely an issue by any normal definition, but is not really a bug based on the way CEGUI is supposed to work.

Basically the combobox consists of three child windows; the editbox, the drop list and the button, which means that the mouse is never in the combobox itself, but always one of those child windows - this has the side-effect that those low-level 'raw' input events never get the to Combobox itself, and the work-around is to subscribe the handler to all three sub-components.

CE.

Re: Conbobox MouseMoveEvent

Posted: Sat Oct 10, 2009 19:35
by Tiblanc
I understand. It's working fine now. Thanks!