Page 1 of 1

[SOLVED]Getting Combobox item under mouse cursor

Posted: Wed Oct 07, 2009 01:11
by Tiblanc
Hi all!

I'm using CEGUI 0.7 with Ogre 1.6.3.

I have a series of Comboboxes which contain a list of available items. I also have a section in the UI where I want to display detailed information about the item when the player hovers the item with the mouse. I've subscribed to the ComboDropList::EventMouseMove, but can't seem to find a function to get the Item under the mouse cursor. There's a function named getItemAtPoint which seems like it would do what I want, but it's protected. Is there another way to get the item that I'm not seeing or will I need to create a ComboDropList child class to expose this function?

Thanks!

Re: Getting Combobox item under mouse cursor

Posted: Wed Oct 07, 2009 08:35
by scriptkid
Hi,

My advise would be to subclass this class indeed. Although i don't see a problem with making this method public. I think there was just never the expectation for this method to be used from a client directly.

I'll ask CE's opinion on this.

HTH.

Re: Getting Combobox item under mouse cursor

Posted: Fri Oct 09, 2009 02:20
by Tiblanc
I went that route and it's working nicely.

Thanks!