X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da0634c1401743089b1d8be20f9b6bdad0e8085b..32c19f25fce3a38f9e4cf1497761fd7364d7bc62:/include/wx/cocoa/statline.h

diff --git a/include/wx/cocoa/statline.h b/include/wx/cocoa/statline.h
index 74469940c3..9c69a65ea8 100644
--- a/include/wx/cocoa/statline.h
+++ b/include/wx/cocoa/statline.h
@@ -6,7 +6,7 @@
 // Created:     2003/03/18
 // RCS-ID:      $Id:
 // Copyright:   (c) 2003 David Elliott
-// Licence:   	wxWindows license
+// Licence:   	wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef __WX_COCOA_STATLINE_H__
@@ -27,7 +27,7 @@ class WXDLLEXPORT wxStaticLine: public wxStaticLineBase// , protected wxCocoaNSB
 // ------------------------------------------------------------------------
 public:
     wxStaticLine() { }
-    wxStaticLine(wxWindow *parent, wxWindowID winid,
+    wxStaticLine(wxWindow *parent, wxWindowID winid = wxID_ANY,
             const wxPoint& pos = wxDefaultPosition,
             const wxSize& size = wxDefaultSize,
             long style = 0, const wxString& name = wxStaticTextNameStr)
@@ -35,7 +35,7 @@ public:
         Create(parent, winid, pos, size, style, name);
     }
 
-    bool Create(wxWindow *parent, wxWindowID winid,
+    bool Create(wxWindow *parent, wxWindowID winid = wxID_ANY,
             const wxPoint& pos = wxDefaultPosition,
             const wxSize& size = wxDefaultSize,
             long style = 0, const wxString& name = wxStaticTextNameStr);
@@ -45,6 +45,8 @@ public:
 // Cocoa callbacks
 // ------------------------------------------------------------------------
 protected:
+    // Static lines cannot be enabled/disabled
+    virtual void CocoaSetEnabled(bool enable) { }
 // ------------------------------------------------------------------------
 // Implementation
 // ------------------------------------------------------------------------