Implement GetLabel and SetLabel
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -66,6 +66,16 @@ void wxButton::Cocoa_wxNSButtonAction(void)
|
||||
Command(event);
|
||||
}
|
||||
|
||||
wxString wxButton::GetLabel() const
|
||||
{
|
||||
return wxString([[GetNSButton() title] lossyCString]);
|
||||
}
|
||||
|
||||
void wxButton::SetLabel(const wxString& label)
|
||||
{
|
||||
[GetNSButton() setTitle:wxNSStringWithWxString(label)];
|
||||
}
|
||||
|
||||
wxSize wxButtonBase::GetDefaultSize()
|
||||
{
|
||||
// FIXME: stub
|
||||
|
Reference in New Issue
Block a user