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:
parent
33b0e2df56
commit
d803176a8e
@ -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;
|
||||
|
@ -136,4 +136,9 @@ void wxCheckBox::Cocoa_wxNSButtonAction(void)
|
||||
Command(event);
|
||||
}
|
||||
|
||||
void wxCheckBox::SetLabel(const wxString& s)
|
||||
{
|
||||
wxAutoNSAutoreleasePool pool;
|
||||
[GetNSButton() setTitle:wxNSStringWithWxString(s)];
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user