// class constructor EditArrayOrderDlg::EditArrayOrderDlg(wxWindow* parent, const wxArrayString& array) : m_Array(array) { wxXmlResource::Get()->LoadObject(this, parent, _T("dlgEditArrayOrder"),_T("wxScrollingDialog")); XRCCTRL(*this, "wxID_OK", wxButton)->SetDefault(); DoFillList(); }
//--------------------------------------------------------------------------- void __fastcall TForm1::FileOpenActionExecute(TObject *Sender) { if (OpenDialog1->Execute()) { if (m_history != NULL) { delete m_history; m_history = NULL; } AnsiString str = OpenDialog1->FileName; m_history = new TMeasurementColorHistory(str); DoFillList(); m_path = ExtractFilePath(OpenDialog1->FileName); } }
// class constructor EditArrayOrderDlg::EditArrayOrderDlg(wxWindow* parent, const wxArrayString& array) : m_Array(array) { wxXmlResource::Get()->LoadObject(this, parent, _T("dlgEditArrayOrder"),_T("wxScrollingDialog")); DoFillList(); }