event for clicking IGUITab?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
humorstar
Posts: 25
Joined: Sat Oct 04, 2008 3:50 am

event for clicking IGUITab?

Post by humorstar »

I have a IGUITabControl with several IGUITab. I hope that when a user clicks a Tab, my program can detect that event and then do some processing. Is this possible?

Thank you,
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

You could stick a printf/breakpoint in your OnEvent function and then click on the tab?

Or look at the source and see if the tab control sends an event when the tab is clicked.

If there isn't an event sent then it shouldn't be too hard to make it send one.
Image Image Image
sp00n
Posts: 114
Joined: Wed Sep 13, 2006 9:39 am

Post by sp00n »

mouse click event and checking caller id, may be?
Nox
Posts: 304
Joined: Wed Jan 14, 2009 6:23 pm

Post by Nox »

//! The tab was changed in an tab control
EGET_TAB_CHANGED,
doc ftw :roll:
Post Reply