git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44792
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual void SetValue(bool);
virtual bool GetValue() const;
virtual void SetLabel(const wxString& label);
virtual void SetValue(bool);
virtual bool GetValue() const;
virtual void SetLabel(const wxString& label);
+ virtual wxString GetLabel() const;
+
protected:
virtual void DoSet3StateValue(wxCheckBoxState state);
virtual wxCheckBoxState DoGet3StateValue() const;
protected:
virtual void DoSet3StateValue(wxCheckBoxState state);
virtual wxCheckBoxState DoGet3StateValue() const;
// Implementation
// ------------------------------------------------------------------------
public:
// Implementation
// ------------------------------------------------------------------------
public:
- void SetLabel(const wxString& label);
+ virtual void SetLabel(const wxString& label);
+ virtual wxString GetLabel() const;
-#endif
- // __WX_COCOA_STATTEXT_H__
+#endif // __WX_COCOA_STATTEXT_H__
wxAutoNSAutoreleasePool pool;
[GetNSButton() setTitle:wxNSStringWithWxString(s)];
}
wxAutoNSAutoreleasePool pool;
[GetNSButton() setTitle:wxNSStringWithWxString(s)];
}
+
+wxString wxCheckBox::GetLabel() const
+{
+ wxAutoNSAutoreleasePool pool;
+ return wxStringWithNSString([GetNSButton() title]);
+
+}
+
+#endif // wxUSE_CHECKBOX
[[GetNSTextField() superview] setNeedsDisplayInRect:newFrameRect];
}
[[GetNSTextField() superview] setNeedsDisplayInRect:newFrameRect];
}
+wxString wxStaticText::GetLabel() const
+{
+ wxAutoNSAutoreleasePool pool;
+ return wxStringWithNSString([GetNSTextField() stringValue]);
+}
+
void wxStaticText::Cocoa_didChangeText(void)
{
}
void wxStaticText::Cocoa_didChangeText(void)
{
}