+void MyFrame::OnSetEditable(wxCommandEvent& WXUNUSED(event))
+{
+ static bool s_editable = TRUE;
+
+ s_editable = !s_editable;
+ m_panel->m_text->SetEditable(s_editable);
+ m_panel->m_password->SetEditable(s_editable);
+ m_panel->m_multitext->SetEditable(s_editable);
+ m_panel->m_textrich->SetEditable(s_editable);
+}
+
+void MyFrame::OnSetEnabled(wxCommandEvent& WXUNUSED(event))
+{
+ bool enabled = m_panel->m_text->IsEnabled();
+ enabled = !enabled;
+
+ m_panel->m_text->Enable(enabled);
+ m_panel->m_password->Enable(enabled);
+ m_panel->m_multitext->Enable(enabled);
+ m_panel->m_readonly->Enable(enabled);
+ m_panel->m_textrich->Enable(enabled);
+}
+