}
}
- sizer->Add(this->m_ListBox,1,wxGROW);
+ sizer->Add(this->m_ListBox, 1, wxGROW);
}
// ----------------------------------------------------------------------------------
ListWx::ListWx(wxWindow* parent, wxWindowID id, TFunctor* functor)
+ : wxPanel(parent, id)
{
+ this->m_Functor = functor;
+
+ wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL);
+
+ this->SetSizer(sizer);
+
+ this->m_ListBox = new wxListBox(this, -1);
+ this->m_FunctorEnabled = true;
+
+ this->Connect(wxEVT_COMMAND_LISTBOX_SELECTED,
+ wxCommandEventHandler(ListWx::ListEvent));
+
+ sizer->Add(this->m_ListBox, 1, wxGROW);
}
// ----------------------------------------------------------------------------------
return this->m_FunctorEnabled;
}
+ // ----------------------------------------------------------------------------------
+ wxListBox*
+ ListWx::GetListBox() const
+ {
+ return this->m_ListBox;
+ }
+
} //ecapseman
} //ecapseman