]> git.saurik.com Git - wxWidgets.git/commitdiff
Override GetDefaultBorder, currently changes nothing
authorRobert Roebling <robert@roebling.de>
Thu, 22 Jan 2009 13:33:00 +0000 (13:33 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 22 Jan 2009 13:33:00 +0000 (13:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/dataview.h
src/generic/datavgen.cpp

index a4780c42abb67d5fc7736bac64cbfe7ed7f9fd5b..bc5abbd92eaa64684dba35db1df837541b9ddce8 100644 (file)
@@ -453,6 +453,8 @@ public:
     virtual bool EnableDragSource( const wxDataFormat &format );
     virtual bool EnableDropTarget( const wxDataFormat &format );
 
+    virtual wxBorder GetDefaultBorder() const;
+
 protected:
     virtual int GetSelections( wxArrayInt & sel ) const;
     virtual void SetSelections( const wxArrayInt & sel );
index e00d3b813a040d91f9b51d96c2e486b6ac1ca508..7079649cc615913e5163baf02cbf8818a756a459 100644 (file)
@@ -3691,8 +3691,8 @@ 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 ( (style & wxBORDER_MASK) == 0)
+//        style |= wxBORDER_SUNKEN;
 
     Init();
 
@@ -3724,6 +3724,11 @@ bool wxDataViewCtrl::Create(wxWindow *parent, wxWindowID id,
     return true;
 }
 
+wxBorder wxDataViewCtrl::GetDefaultBorder() const
+{
+    return wxBORDER_THEME;
+}
+
 #ifdef __WXMSW__
 WXLRESULT wxDataViewCtrl::MSWWindowProc(WXUINT nMsg,
                                        WXWPARAM wParam,