我的主窗口名为MyFrame,我有mathod
Key Column1 Column2 Column3 Column4 Column5
Test1 500 400 200 Good Good
Test2 499 400 200 Good Good
Test5 600 200 150 Good Good
Test6 600 199 150 Good Good
Test7 599 199 100 Good Good
AddDialog.cpp:
构造
void MyPanel::OnNew(wxCommandEvent& WXUNUSED(event))
{
AddDialog *adddialog = new AddDialog(wxT("Add new speaker"));
adddialog->Show(true);
}
方法:
{
//...
wxChoice* choice1 = new wxChoice(panel, 6, wxPoint(200,30), wxDefaultSize, strings_colors);
// ...
}
问题是我如何得到用户在wxChoice中选择的内容?以及如何将其传递给主窗口(称为MyPanel)