git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21975
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#import <Foundation/NSString.h>
#import <AppKit/NSTextField.h>
#import <Foundation/NSString.h>
#import <AppKit/NSTextField.h>
IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl)
BEGIN_EVENT_TABLE(wxStaticText, wxControl)
IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl)
BEGIN_EVENT_TABLE(wxStaticText, wxControl)
[GetNSTextField() setBezeled: NO];
[GetNSTextField() setEditable: NO];
[GetNSTextField() setDrawsBackground: NO];
[GetNSTextField() setBezeled: NO];
[GetNSTextField() setEditable: NO];
[GetNSTextField() setDrawsBackground: NO];
[GetNSControl() sizeToFit];
[GetNSControl() sizeToFit];
+ // Round-up to next integer size
+ NSRect nsrect = [m_cocoaNSView frame];
+ nsrect.size.width = ceil(nsrect.size.width);
+ [m_cocoaNSView setFrameSize: nsrect.size];
+
if(m_parent)
m_parent->CocoaAddChild(this);
return true;
if(m_parent)
m_parent->CocoaAddChild(this);
return true;