+void MyPanel::OnListBoxButtons( wxCommandEvent &event )
+{
+ switch (event.GetId())
+ {
+ case ID_LISTBOX_SEL_NUM:
+ {
+ m_listbox->SetSelection( 2 );
+ break;
+ }
+ case ID_LISTBOX_SEL_STR:
+ {
+ m_listbox->SetStringSelection( "This" );
+ break;
+ }
+ case ID_LISTBOX_CLEAR:
+ {
+ m_listbox->Clear();
+ break;
+ }
+ case ID_LISTBOX_APPEND:
+ {
+ m_listbox->Append( "Hi!" );
+ break;
+ }
+ }
+}
+
+void MyPanel::OnChoice( wxCommandEvent &event )
+{
+ m_text->WriteText( "Choice selection string is: " );
+ m_text->WriteText( event.GetString() );
+ m_text->WriteText( "\n" );
+}
+
+void MyPanel::OnChoiceButtons( wxCommandEvent &event )
+{
+ switch (event.GetId())
+ {
+ case ID_CHOICE_SEL_NUM:
+ {
+ m_choice->SetSelection( 2 );
+ break;
+ }
+ case ID_CHOICE_SEL_STR:
+ {
+ m_choice->SetStringSelection( "This" );
+ break;
+ }
+ case ID_CHOICE_CLEAR:
+ {
+ m_choice->Clear();
+ break;
+ }
+ case ID_CHOICE_APPEND:
+ {
+ m_choice->Append( "Hi!" );
+ break;
+ }
+ }
+}
+
+void MyPanel::OnCombo( wxCommandEvent &event )
+{
+ m_text->WriteText( "ComboBox selection string is: " );
+ m_text->WriteText( event.GetString() );
+ m_text->WriteText( "\n" );
+}
+
+void MyPanel::OnComboButtons( wxCommandEvent &event )