Skip to content

Commit

Permalink
added tabheader title suppport
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Nov 17, 2013
1 parent a27323f commit e7a7d6e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion platform/wm/rhodes/rho/rubyext/NativeTabbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,13 @@ void CNativeTabbar::SwitchTab(int index, bool bCreateOnly/*=false*/, bool bByNam
if (bNewTab || bByName)
Sleep(200);

raiseTabEvent( "onTabFocus", nOldTab, m_nCurrentTab );
if(RHOCONF().getBool("useTabHeaders"))
{
RHOCONF().setString("title_text", m_arTabs[index].m_strLabel.c_str(), false);
PostMessage(getAppWindow().m_hWnd, WM_COMMAND, ID_TITLECHANGE, 0);
}

raiseTabEvent( "onTabFocus", nOldTab, m_nCurrentTab );
}

if ( m_arTabs[index].m_strAction.length() > 0 && (m_arTabs[index].m_bReloadPage || bNewTab) )
Expand Down

0 comments on commit e7a7d6e

Please sign in to comment.