]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/tglbtn.h
Fixed Connect() use sample case in CreateControls() docs
[wxWidgets.git] / interface / wx / tglbtn.h
index 75f7e4a352e849bc09a3495ad818d5f1a537acfe..b99f276a6ae7b4459a7699dbb39f6f050384b1b7 100644 (file)
 class wxToggleButton : public wxControl
 {
 public:
-    //@{
+    /**
+      Default constructor.
+    */
+    wxToggleButton();
+
     /**
         Constructor, creating and showing a toggle button.
 
@@ -58,15 +62,13 @@ public:
 
         @see Create(), wxValidator
     */
-    wxToggleButton();
     wxToggleButton(wxWindow* parent, wxWindowID id,
                    const wxString& label,
                    const wxPoint& pos = wxDefaultPosition,
                    const wxSize& size = wxDefaultSize,
                    long style = 0,
                    const wxValidator& val = wxDefaultValidator,
-                   const wxString& name = "checkBox");
-    //@}
+                   const wxString& name = wxCheckBoxNameStr);
 
     /**
         Destructor, destroying the toggle button.
@@ -83,14 +85,14 @@ public:
                 const wxSize& size = wxDefaultSize,
                 long style = 0,
                 const wxValidator& val = wxDefaultValidator,
-                const wxString& name = "checkBox");
+                const wxString& name = wxCheckBoxNameStr);
 
     /**
         Gets the state of the toggle button.
 
         @return Returns @true if it is pressed, @false otherwise.
     */
-    bool GetValue() const;
+    virtual bool GetValue() const;
 
     /**
         Sets the toggle button to the given state. This does not cause a
@@ -99,7 +101,7 @@ public:
         @param state
             If @true, the button is pressed.
     */
-    void SetValue(bool state);
+    virtual void SetValue(bool state);
 };
 
 
@@ -123,20 +125,22 @@ public:
 class wxBitmapToggleButton : public wxControl
 {
 public:
-    //@{
+    /**
+        Default constructor.
+    */
+    wxBitmapToggleButton();
+
     /**
         Constructor, creating and showing a toggle button with the bitmap @e label.
         Internally calls Create().
     */
-    wxBitmapToggleButton();
     wxBitmapToggleButton(wxWindow* parent, wxWindowID id,
                          const wxBitmap& label,
                          const wxPoint& pos = wxDefaultPosition,
                          const wxSize& size = wxDefaultSize,
                          long style = 0,
                          const wxValidator& val = wxDefaultValidator,
-                         const wxString& name = "checkBox");
-    //@}
+                         const wxString& name = wxCheckBoxNameStr);
 
     /**
         Create method for two-step construction.
@@ -147,7 +151,7 @@ public:
                 const wxSize& size = wxDefaultSize,
                 long style = 0,
                 const wxValidator& val = wxDefaultValidator,
-                const wxString& name = "checkBox");
+                const wxString& name = wxCheckBoxNameStr);
 
     /**
         Gets the state of the toggle button.