From: Julian Smart Date: Sat, 25 Feb 2012 22:29:25 +0000 (+0000) Subject: Add borders if none specified X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/69fa3d26d3add4f53310e1b2486d1bed11dec33b Add borders if none specified git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/listbox_osx.cpp b/src/osx/listbox_osx.cpp index 26e6f307a0..982dad0705 100644 --- a/src/osx/listbox_osx.cpp +++ b/src/osx/listbox_osx.cpp @@ -74,6 +74,9 @@ bool wxListBox::Create( DontCreatePeer(); m_blockEvents = false; + if ( ! (style & wxNO_BORDER) ) + style = (style & ~wxBORDER_MASK) | wxSUNKEN_BORDER ; + wxASSERT_MSG( !(style & wxLB_MULTIPLE) || !(style & wxLB_EXTENDED), wxT("only a single listbox selection mode can be specified") );