/**
@class wxToggleButton
- @wxheader{tglbtn.h}
wxToggleButton is a button that stays pressed when clicked by the user. In
other words, it is similar to wxCheckBox in
class wxToggleButton : public wxControl
{
public:
- //@{
+ /**
+ Default constructor.
+ */
+ wxToggleButton();
+
/**
Constructor, creating and showing a toggle button.
@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.
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
@param state
If @true, the button is pressed.
*/
- void SetValue(bool state);
+ virtual void SetValue(bool state);
};
/**
@class wxBitmapToggleButton
- @wxheader{tglbtn.h}
wxBitmapToggleButton is a wxToggleButton
that contains a bitmap instead of text.
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.
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.