Fixed wxTreebook tree control border style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -104,15 +104,18 @@ wxTreebook::Create(wxWindow *parent,
|
|||||||
style, wxDefaultValidator, name) )
|
style, wxDefaultValidator, name) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
long treeStyle = GetThemedBorderStyle();
|
||||||
|
#else
|
||||||
|
long treeStyle = wxBORDER_SUNKEN;
|
||||||
|
#endif
|
||||||
m_bookctrl = new wxTreeCtrl
|
m_bookctrl = new wxTreeCtrl
|
||||||
(
|
(
|
||||||
this,
|
this,
|
||||||
wxID_ANY,
|
wxID_ANY,
|
||||||
wxDefaultPosition,
|
wxDefaultPosition,
|
||||||
wxDefaultSize,
|
wxDefaultSize,
|
||||||
#ifndef __WXMSW__
|
treeStyle|
|
||||||
wxBORDER_SIMPLE | // On wxMSW this produces a black border which is wrong
|
|
||||||
#endif
|
|
||||||
wxTR_DEFAULT_STYLE |
|
wxTR_DEFAULT_STYLE |
|
||||||
wxTR_HIDE_ROOT |
|
wxTR_HIDE_ROOT |
|
||||||
wxTR_SINGLE
|
wxTR_SINGLE
|
||||||
|
Reference in New Issue
Block a user