Active Tab

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
paddy
Not too shy to talk
Not too shy to talk
Posts: 30
Joined: Wed Jan 12, 2005 12:06

Active Tab

Postby paddy » Thu Jan 20, 2005 17:06

Hi everyone,

I've gone through all the tabcontrol functions, but I can't seem to find out how to get the name of the current active tab.

I have a list of current files, and when the user wants to save or close the file, I need to find out what tab is active.

How should I get that info?


[Edit]
I figured out how to catch the EventSelectionChanged event and then use getActiveChild() to determine what the current active tab is, so that's working alright for my app.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Active Tab

Postby CrazyEddie » Fri Jan 21, 2005 12:28

There's a getSelectedTabIndex method and then a getTabContentsAtIndex method. The former is a recent addition, so you may not have this unless you're running a CVS version from earlier this week.

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 11 guests