#include "wx/log.h"
#include "wx/timer.h"
+ #include "wx/bitmap.h"
#include "wx/button.h"
#include "wx/checkbox.h"
#include "wx/radiobox.h"
m_selFrom,
m_selTo;
+ wxString m_range10_20;
+
private:
// any class wishing to process wxWindows events must use this macro
DECLARE_EVENT_TABLE()
{
valueOld = m_text->GetValue();
- m_sizerText->Remove(m_text);
+ m_sizerText->Detach( m_text );
delete m_text;
}
else
if ( m_textRange )
{
- m_textRange->SetValue(m_text->GetRange(10, 20));
+ wxString range = m_text->GetRange(10, 20);
+ if ( range != m_range10_20 )
+ {
+ m_range10_20 = range;
+ m_textRange->SetValue(range);
+ }
}
}
(m_chkWrapLines->GetValue() != DEFAULTS.wraplines) );
}
-void TextWidgetsPage::OnText(wxCommandEvent& event)
+void TextWidgetsPage::OnText(wxCommandEvent& WXUNUSED(event))
{
// small hack to suppress the very first message: by then the logging is
// not yet redirected and so initial setting of the text value results in
wxLogMessage(_T("Text entered: '%s'"), event.GetString().c_str());
}
-void TextWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& event)
+void TextWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event))
{
CreateText();
}