From: Włodzimierz Skiba Date: Sun, 13 Mar 2005 15:35:33 +0000 (+0000) Subject: Better margin on Smartphone. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5a053c22d812f7c2c60d9f6fa6a5c8f6162c91a9 Better margin on Smartphone. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/notebook/notebook.cpp b/samples/notebook/notebook.cpp index c9b5d4a699..966b441350 100644 --- a/samples/notebook/notebook.cpp +++ b/samples/notebook/notebook.cpp @@ -335,6 +335,12 @@ int MyFrame::SelectFlag(int id, int nb, int lb, int chb) return 0; } +#ifdef __SMARTPHONE__ + #define MARGIN 0 +#else + #define MARGIN 4 +#endif + #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); \ } \ \ - m_sizerFrame->Insert(0, newBook, 5, wxEXPAND | wxALL, 4); \ + m_sizerFrame->Insert(0, newBook, 5, wxEXPAND | wxALL, MARGIN); \ \ m_sizerFrame->Hide(newBook); \ }