]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't force wxBORDER_SUNKEN so the programmer can specify some other style.
authorRobin Dunn <robin@alldunn.com>
Tue, 1 Apr 2008 04:35:21 +0000 (04:35 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 1 Apr 2008 04:35:21 +0000 (04:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/datavgen.cpp

index b509ac317da70849186de63b26fbfacb5ab8f335..d23b3c54ee00f3f62b7096304cf751f6c829087d 100644 (file)
@@ -3851,8 +3851,11 @@ bool wxDataViewCtrl::Create(wxWindow *parent, wxWindowID id,
            const wxPoint& pos, const wxSize& size,
            long style, const wxValidator& validator )
 {
+    if ( (style & wxBORDER_MASK) == 0)
+        style |= wxBORDER_SUNKEN;
+    
     if (!wxControl::Create( parent, id, pos, size,
-                            style | wxScrolledWindowStyle|wxBORDER_SUNKEN, validator))
+                            style | wxScrolledWindowStyle, validator))
         return false;
 
     SetInitialSize(size);