From 269169757566137a43dcc99f444d4b2fbb935a99 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Tue, 19 Aug 2003 14:51:08 +0000 Subject: [PATCH] Use NSBox with the NSBoxSeparator box type git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/statline2.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cocoa/statline2.mm b/src/cocoa/statline2.mm index 75e8da18ae..b23deacc07 100644 --- a/src/cocoa/statline2.mm +++ b/src/cocoa/statline2.mm @@ -12,7 +12,7 @@ #include "wx/app.h" #include "wx/statline.h" -#import +#import IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl) BEGIN_EVENT_TABLE(wxStaticLine, wxStaticLineBase) @@ -27,8 +27,9 @@ bool wxStaticLine::Create(wxWindow *parent, wxWindowID winid, { if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name)) return false; - SetNSView([[NSView alloc] initWithFrame: MakeDefaultNSRect(size)]); + SetNSView([[NSBox alloc] initWithFrame: MakeDefaultNSRect(size)]); [m_cocoaNSView release]; + [(NSBox*)m_cocoaNSView setBoxType: NSBoxSeparator]; if(m_parent) m_parent->CocoaAddChild(this); SetInitialFrameRect(pos,size); -- 2.45.2