wouldn't it work if you "reparent" the windowcontainer to the selected tab when it gets selected? Continue reading...