From 69fa3d26d3add4f53310e1b2486d1bed11dec33b Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 25 Feb 2012 22:29:25 +0000 Subject: [PATCH] Add borders if none specified git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/listbox_osx.cpp | 3 +++ 1 file changed, 3 insertions(+) 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") ); -- 2.47.2