]> git.saurik.com Git - wxWidgets.git/commitdiff
Description of the 'generic dialogs in native builds' application.
authorWłodzimierz Skiba <abx@abx.art.pl>
Thu, 16 Sep 2004 18:35:43 +0000 (18:35 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Thu, 16 Sep 2004 18:35:43 +0000 (18:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dialogs/dialogs.h

index 0b1dcf8ee2e49d49716dddf9a031d636fc0af9ad..32c566a56ea1cac53f914c97e10ede9b568dcc2a 100644 (file)
@@ -9,6 +9,16 @@
 // Licence:     wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
+/*
+This sample shows how to use the common dialogs available from wxWidgets. 
+It also shows that generic implementations of common dialogs can be exchanged
+with native dialogs and can coexist in one application. The need for generic
+dialogs addition is recognized thanks to setup of below USE_*** setting. Their
+combinations reflects conditions of makefiles and project files to avoid unresolved 
+references during linking. For now some generic dialogs are added in static builds 
+of MSW, MAC and OS2
+*/
+
 #ifndef __DIALOGSH__
 #define __DIALOGSH__
 
 #define USE_FONTDLG_GENERIC \
     ((USE_WXMSW || USE_WXPM) && USE_GENERIC_DIALOGS && wxUSE_FONTDLG)
 
-// VZ: what is this for?
-#define USE_MODAL_PRESENTATION                      \
-    (                                               \
-        USE_WXMSW ||                                \
-        USE_WXMAC ||                                \
-        USE_WXGTK ||                                \
-        USE_WXPM                                    \
-    )
+
+// Turn to 0 if there is any reason for not presenting difference between 
+// modal and modeless dialogs (ie. not implemented it in your port yet)
+#define USE_MODAL_PRESENTATION       1
+
 
 // Define a new application type
 class MyApp: public wxApp