[SOLVED]Combobox MouseMoveEvent

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Tiblanc
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sun Sep 13, 2009 01:27
Location: Quebec, Canada

[SOLVED]Combobox MouseMoveEvent

Postby Tiblanc » Sat Oct 10, 2009 15:13

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!
Last edited by Tiblanc on Sat Oct 10, 2009 19:35, edited 1 time in total.

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

Re: Conbobox MouseMoveEvent

Postby CrazyEddie » Sat Oct 10, 2009 17:58

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.

User avatar
Tiblanc
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sun Sep 13, 2009 01:27
Location: Quebec, Canada

Re: Conbobox MouseMoveEvent

Postby Tiblanc » Sat Oct 10, 2009 19:35

I understand. It's working fine now. Thanks!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 6 guests