Better margin on Smartphone.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 ) \
|
#define RECREATE( wxBookType , idBook, oldBook , newBook ) \
|
||||||
{ \
|
{ \
|
||||||
int flags; \
|
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); \
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user