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!
[SOLVED]Getting Combobox item under mouse cursor
Moderators: CEGUI MVP, CEGUI Team
[SOLVED]Getting Combobox item under mouse cursor
Last edited by Tiblanc on Fri Oct 09, 2009 02:20, edited 1 time in total.
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
Re: Getting Combobox item under mouse cursor
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.
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.
Check out my released snake game using Cegui!
Re: Getting Combobox item under mouse cursor
I went that route and it's working nicely.
Thanks!
Thanks!
Who is online
Users browsing this forum: No registered users and 7 guests