implement label setting

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton 2005-04-22 00:49:43 +00:00
parent 33b0e2df56
commit d803176a8e
2 changed files with 7 additions and 0 deletions

View File

@ -58,6 +58,8 @@ protected:
public:
virtual void SetValue(bool);
virtual bool GetValue() const;
virtual void SetLabel(const wxString& label);
virtual wxString GetLabel() const { return GetTitle(); }
protected:
virtual void DoSet3StateValue(wxCheckBoxState state);
virtual wxCheckBoxState DoGet3StateValue() const;

View File

@ -136,4 +136,9 @@ void wxCheckBox::Cocoa_wxNSButtonAction(void)
Command(event);
}
void wxCheckBox::SetLabel(const wxString& s)
{
wxAutoNSAutoreleasePool pool;
[GetNSButton() setTitle:wxNSStringWithWxString(s)];
}
#endif