Suppressed some flicker in standard wxToolBar

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-07-31 11:33:39 +00:00
parent a9d3371aec
commit 229de929f3
3 changed files with 54 additions and 8 deletions

View File

@@ -92,7 +92,7 @@ public:
const wxString& title = _T("wxToolBar Sample"),
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE);
long style = wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN|wxNO_FULL_REPAINT_ON_RESIZE);
void RecreateToolbar();
@@ -267,6 +267,7 @@ void MyFrame::RecreateToolbar()
style &= ~(wxTB_HORIZONTAL | wxTB_VERTICAL);
style |= m_horzToolbar ? wxTB_HORIZONTAL : wxTB_VERTICAL;
style |= wxNO_FULL_REPAINT_ON_RESIZE ;
toolBar = CreateToolBar(style, ID_TOOLBAR);
#endif
@@ -611,7 +612,8 @@ void MyFrame::DoToggleHelp()
void MyFrame::OnUpdateCopyAndCut(wxUpdateUIEvent& event)
{
event.Enable( m_textWindow->CanCopy() );
if (m_textWindow)
event.Enable( m_textWindow->CanCopy() );
}
void MyFrame::OnChangeToolTip(wxCommandEvent& WXUNUSED(event))