]> git.saurik.com Git - wxWidgets.git/commitdiff
document wxRESIZE_BORDER side effect under Windows (see #9989)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 5 Nov 2008 15:27:34 +0000 (15:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 5 Nov 2008 15:27:34 +0000 (15:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/dirdlg.h

index d34a054a3d8f5f2e7d9a9e9b35696c6a11d24ad5..cf6364f31b2250185fac18a7a9c866f44228fca4 100644 (file)
            user.
     @endStyleTable
 
            user.
     @endStyleTable
 
-    @note On Windows the new directory button is only available with recent
-          versions of the common dialogs.
+    Notice that @c wxRESIZE_BORDER has special side effect under recent (i.e.
+    later than Win9x) Windows where two different directory selection dialogs
+    are available and this style also implicitly selects the new version as the
+    old one always has fixed size. As the new version is almost always
+    preferable, it is recommended that @c wxRESIZE_BORDER style be always used.
+    This is the case if the dialog is created with the default style value but
+    if you need to use any additional styles you should still specify @c
+    wxDD_DEFAULT_STYLE unless you explicitly need to use the old dialog version
+    under Windows. E.g. do
+    @code
+        wxDirDialog dlg(NULL, "Choose input directory", "",
+                        wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST);
+    @endcode
+    instead of just using @c wxDD_DIR_MUST_EXIST style alone.
 
     @library{wxcore}
     @category{cmndlg}
 
     @library{wxcore}
     @category{cmndlg}