]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dialogs/dialogs.cpp
wxSplitterWindow::ReplaceWindow() function added and documented
[wxWidgets.git] / samples / dialogs / dialogs.cpp
index 7477d7de43c7cc8a195c6228f8fb6c3de43cc3d9..a555d86d668886090cc0b477229087cdabc5d241 100644 (file)
@@ -80,11 +80,7 @@ bool MyApp::OnInit(void)
   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;
@@ -256,7 +252,6 @@ void MyFrame::FileSave(wxCommandEvent& WXUNUSED(event) )
 
 void MyFrame::DirChoose(wxCommandEvent& WXUNUSED(event) )
 {
-#ifndef __WXGTK__
        wxDirDialog dialog(this, "Testing directory picker", "");
 
        if (dialog.ShowModal() == wxID_OK)
@@ -264,7 +259,6 @@ void MyFrame::DirChoose(wxCommandEvent& WXUNUSED(event) )
                wxMessageDialog dialog2(this, dialog.GetPath(), "Selected path");
                dialog2.ShowModal();
        }
-#endif
 }
 
 void MyFrame::OnExit(wxCommandEvent& WXUNUSED(event) )