Add borders if none specified
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -74,6 +74,9 @@ bool wxListBox::Create(
|
|||||||
DontCreatePeer();
|
DontCreatePeer();
|
||||||
m_blockEvents = false;
|
m_blockEvents = false;
|
||||||
|
|
||||||
|
if ( ! (style & wxNO_BORDER) )
|
||||||
|
style = (style & ~wxBORDER_MASK) | wxSUNKEN_BORDER ;
|
||||||
|
|
||||||
wxASSERT_MSG( !(style & wxLB_MULTIPLE) || !(style & wxLB_EXTENDED),
|
wxASSERT_MSG( !(style & wxLB_MULTIPLE) || !(style & wxLB_EXTENDED),
|
||||||
wxT("only a single listbox selection mode can be specified") );
|
wxT("only a single listbox selection mode can be specified") );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user