Page 1 of 1

Active Tab

Posted: Thu Jan 20, 2005 17:06
by paddy
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.

Re: Active Tab

Posted: Fri Jan 21, 2005 12:28
by CrazyEddie
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.