X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c530e5a6790a1789d8f857eb0c1d49b743833cd..4e916e61ea24c165fb55e78172f1093bf7481b48:/src/osx/radiobox_osx.cpp diff --git a/src/osx/radiobox_osx.cpp b/src/osx/radiobox_osx.cpp index dec4feb9a1..4ba2abf019 100644 --- a/src/osx/radiobox_osx.cpp +++ b/src/osx/radiobox_osx.cpp @@ -52,7 +52,7 @@ wxRadioBox::wxRadioBox() wxRadioBox::~wxRadioBox() { - m_isBeingDeleted = true; + SendDestroyEvent(); wxRadioButton *next, *current; @@ -411,7 +411,7 @@ void wxRadioBox::DoSetSize(int x, int y, int width, int height, int sizeFlags) totWidth = GetColumnCount() * (maxWidth + charWidth); wxSize sz = DoGetSizeFromClientSize( wxSize( totWidth, totHeight ) ) ; - + // change the width / height only when specified if ( width == wxDefaultCoord ) { @@ -502,7 +502,7 @@ wxSize wxRadioBox::DoGetBestSize() const wxSize sz = DoGetSizeFromClientSize( wxSize( totWidth, totHeight ) ); totWidth = sz.x; totHeight = sz.y; - + // optimum size is an additional 5 pt border to all sides totWidth += 10; totHeight += 10; @@ -516,4 +516,13 @@ wxSize wxRadioBox::DoGetBestSize() const return wxSize( totWidth, totHeight ); } +bool wxRadioBox::SetFont(const wxFont& font) +{ + bool retval = wxWindowBase::SetFont( font ); + + // dont' update the native control, it has its own small font + + return retval; +} + #endif // wxUSE_RADIOBOX