Switch play/pause button icons when necessary
This commit is contained in:
parent
019d5aee49
commit
400a7bd612
|
@ -584,7 +584,7 @@ void CFrame::OnToolBar(wxCommandEvent& event)
|
|||
break;
|
||||
case IDM_EDIT_PERSPECTIVES:
|
||||
m_bEdit = !m_bEdit;
|
||||
//m_ToolBarAui->SetToolSticky(IDM_EDIT_PERSPECTIVES, m_bEdit);
|
||||
m_ToolBarAui->SetToolSticky(IDM_EDIT_PERSPECTIVES, m_bEdit);
|
||||
TogglePaneStyle(m_bEdit, IDM_EDIT_PERSPECTIVES);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1722,15 +1722,13 @@ void CFrame::UpdateGUI()
|
|||
{
|
||||
PlayTool->SetLabel(_("Pause"));
|
||||
PlayTool->SetShortHelp(_("Pause"));
|
||||
// TODO: Change icon
|
||||
// m_ToolBar->SetToolBitmap(IDM_PLAY, m_Bitmaps[Toolbar_Pause]);
|
||||
m_ToolBar->SetToolNormalBitmap(IDM_PLAY, m_Bitmaps[Toolbar_Pause]);
|
||||
}
|
||||
else
|
||||
{
|
||||
PlayTool->SetLabel(_("Play"));
|
||||
PlayTool->SetShortHelp(_("Play"));
|
||||
// TODO: Change icon
|
||||
// m_ToolBar->SetToolBitmap(IDM_PLAY, m_Bitmaps[Toolbar_Play]);
|
||||
m_ToolBar->SetToolNormalBitmap(IDM_PLAY, m_Bitmaps[Toolbar_Play]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue