Default constructor.
*/
wxToggleButton();
-
+
/**
Constructor, creating and showing a toggle button.
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);
};
Default constructor.
*/
wxBitmapToggleButton();
-
+
/**
Constructor, creating and showing a toggle button with the bitmap @e label.
Internally calls Create().
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.