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.
humorstar
Posts: 25 Joined: Sat Oct 04, 2008 3:50 am
Post
by humorstar » Mon Feb 23, 2009 3:07 pm
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 » Mon Feb 23, 2009 3:14 pm
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.
sp00n
Posts: 114 Joined: Wed Sep 13, 2006 9:39 am
Post
by sp00n » Mon Feb 23, 2009 3:36 pm
mouse click event and checking caller id, may be?
Nox
Posts: 304 Joined: Wed Jan 14, 2009 6:23 pm
Post
by Nox » Mon Feb 23, 2009 3:56 pm
//! The tab was changed in an tab control
EGET_TAB_CHANGED,
doc ftw