The new Release 20.03 is out! You can download binaries for Windows and many major Linux distros here .
void SomeDialog::OnButton1Click(wxCommandEvent& event){ if ( FileDialog1->ShowModal() != wxID_OK ) return; wxString FileName = FileDialog1->GetFilename(); if ( FileName.IsEmpty() ) return; // FileName points to selected file wxMessageBox( FileName );}