Start function with tab change??

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
PsycoDad
Posts: 36
Joined: Mon Jan 09, 2006 8:30 am
Location: Munich/Germany

Start function with tab change??

Post by PsycoDad »

Hello.
A noob question, but i don´t find a answer in the examples or in the forum.

How can I start a function by click on the next tab on the GUI Toolbar?

Greets PsycoDad.
Wer andern eine Bratwurst brät, der hat ein Bratwurstbratgerät!
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

The gui toolbar class doesn't have tabs, it has buttons [you add them with addButton]. As with other buttons, a EGET_BUTTON_CLICKED gui event is sent to the user event receiver when they are clicked.

If, for some reason, you are mistaken and you are actually talking about a tab control, then the user event receiver will get a EGET_TAB_CHANGED gui event.

Travis
Post Reply