]> git.saurik.com Git - wxWidgets.git/commitdiff
Better margin on Smartphone.
authorWłodzimierz Skiba <abx@abx.art.pl>
Sun, 13 Mar 2005 15:35:33 +0000 (15:35 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Sun, 13 Mar 2005 15:35:33 +0000 (15:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/notebook/notebook.cpp

index c9b5d4a6990b4799ef5f03163350e284dbcd4ff0..966b441350a7f9cda98390185a4fae232ab39c0b 100644 (file)
@@ -335,6 +335,12 @@ int MyFrame::SelectFlag(int id, int nb, int lb, int chb)
     return 0;
 }
 
     return 0;
 }
 
+#ifdef __SMARTPHONE__
+    #define MARGIN 0
+#else
+    #define MARGIN 4
+#endif
+
 #define RECREATE( wxBookType , idBook, oldBook , newBook )                         \
 {                                                                                  \
     int flags;                                                                     \
 #define RECREATE( wxBookType , idBook, oldBook , newBook )                         \
 {                                                                                  \
     int flags;                                                                     \
@@ -403,7 +409,7 @@ int MyFrame::SelectFlag(int id, int nb, int lb, int chb)
         CreateInitialPages(newBook);                                               \
     }                                                                              \
                                                                                    \
         CreateInitialPages(newBook);                                               \
     }                                                                              \
                                                                                    \
-    m_sizerFrame->Insert(0, newBook, 5, wxEXPAND | wxALL, 4);                      \
+    m_sizerFrame->Insert(0, newBook, 5, wxEXPAND | wxALL, MARGIN);                 \
                                                                                    \
     m_sizerFrame->Hide(newBook);                                                   \
 }
                                                                                    \
     m_sizerFrame->Hide(newBook);                                                   \
 }