janac

wxFileCtrlEventHandler()

Oct 11th, 2021 (edited)
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. FilePicker::FilePicker(const wxString& title)
  2. : wxFrame(NULL, wxID_ANY, title)
  3. {
  4. wxFileCtrl* file_picker = new wxFileCtrl(this, wxID_ANY, wxEmptyString, wxEmptyString, wxT("*.txt"), wxFC_SAVE|wxFC_NOSHOWHIDDEN);
  5.  
  6. /****** ERROR ******/ Connect( wxEVT_FILECTRL_FILEACTIVATED, wxFileCtrlEventHandler(FilePicker::OnEnter()) );
  7.  
  8. Centre();
  9. }
  10.  
  11.  
  12. void FilePicker::OnEnter(wxFileCtrlEvent& event)
  13. {
  14. wxString save_to = event.GetFile();
  15. }
Add Comment
Please, Sign In to add comment