hi I need to randomly add and remove tabs in status pane's tab group dynamically. Say I have 3 tabs with tab ids (0,1,2) now i need to remove tab id 0.

void ChangeTabGroupState(TInt aDeleteId, TInt aNewActiveId)
how tab ids has to be reorganized for the purpose? if 0 is removed, will tab ids(1,2) be shifted to (0,1)? how to determine
the active tab id after deletion of a tab? thanks