]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/button.h
made wxListbook events more consistent with wxNotebook ones (patch 1001271)
[wxWidgets.git] / include / wx / cocoa / button.h
index 748bd0cb1efa8a009cca0d2ec80b89482f6a3fde..2624033e4a81351785193f116fc5faea106deb3c 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     2002/12/29
 // RCS-ID:      $Id: 
 // Copyright:   (c) 2002 David Elliott
-// Licence:    wxWindows license
+// Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef __WX_COCOA_BUTTON_H__
@@ -28,7 +28,7 @@ class WXDLLEXPORT wxButton : public wxButtonBase, protected wxCocoaNSButton
 public:
    wxButton() { }
    wxButton(wxWindow *parent, wxWindowID winid,
-             const wxString& label,
+             const wxString& label = wxEmptyString,
              const wxPoint& pos = wxDefaultPosition,
              const wxSize& size = wxDefaultSize, long style = 0,
              const wxValidator& validator = wxDefaultValidator,
@@ -36,13 +36,15 @@ public:
     {
         Create(parent, winid, label, pos, size, style, validator, name);
     }
+    
 
     bool Create(wxWindow *parent, wxWindowID winid,
-            const wxString& label,
+            const wxString& label = wxEmptyString,
             const wxPoint& pos = wxDefaultPosition,
             const wxSize& size = wxDefaultSize, long style = 0,
             const wxValidator& validator = wxDefaultValidator,
             const wxString& name = wxButtonNameStr);
+    
     virtual ~wxButton();
 
 // ------------------------------------------------------------------------
@@ -54,6 +56,8 @@ protected:
 // Implementation
 // ------------------------------------------------------------------------
 public:
+    wxString GetLabel() const;
+    void SetLabel(const wxString& label);
 };
 
 #endif // __WX_COCOA_BUTTON_H__