]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/choicdgg.cpp
fixed typo (no code changes)
[wxWidgets.git] / src / generic / choicdgg.cpp
index 2d839af29503ddc75a83172d39c934a1c9cd6b23..a71dd76d5c2d8fa8b6849cfec474c92502bea712 100644 (file)
 
 #define wxID_LISTBOX 3000
 
+// ---------------------------------------------------------------------------
+// macros
+// ---------------------------------------------------------------------------
+
+/* Macro for avoiding #ifdefs when value have to be different depending on size of
+   device we display on
+ */
+
+#if defined(__SMARTPHONE__)
+    #define wxLARGESMALL(large,small) small
+#else
+    #define wxLARGESMALL(large,small) large
+#endif
+
 // ----------------------------------------------------------------------------
 // private functions
 // ----------------------------------------------------------------------------
@@ -286,7 +300,8 @@ bool wxAnyChoiceDialog::Create(wxWindow *parent,
     topsizer->SetSizeHints( this );
     topsizer->Fit( this );
 
-    Centre( wxBOTH );
+    if ( styleDlg & wxCENTRE )
+        Centre(wxBOTH);
 
     m_listbox->SetFocus();