file_menu->AppendSeparator();
file_menu->Append(DIALOGS_FILE_OPEN, "&Open file");
file_menu->Append(DIALOGS_FILE_SAVE, "Sa&ve file");
-#ifndef __WXGTK__
- // don't add a menu entry for something that isn't in wxGTK. It only
- // confuses the user
file_menu->Append(DIALOGS_DIR_CHOOSE, "&Choose a directory");
-#endif
file_menu->AppendSeparator();
file_menu->Append(wxID_EXIT, "E&xit");
wxMenuBar *menu_bar = new wxMenuBar;
void MyFrame::DirChoose(wxCommandEvent& WXUNUSED(event) )
{
-#ifndef __WXGTK__
wxDirDialog dialog(this, "Testing directory picker", "");
if (dialog.ShowModal() == wxID_OK)
wxMessageDialog dialog2(this, dialog.GetPath(), "Selected path");
dialog2.ShowModal();
}
-#endif
}
void MyFrame::OnExit(wxCommandEvent& WXUNUSED(event) )