From 5a053c22d812f7c2c60d9f6fa6a5c8f6162c91a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Sun, 13 Mar 2005 15:35:33 +0000 Subject: [PATCH] Better margin on Smartphone. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/notebook/notebook.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); \ } -- 2.45.2