Use NSBox with the NSBoxSeparator box type

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott 2003-08-19 14:51:08 +00:00
parent c5172ed1bf
commit 2691697575

View File

@ -12,7 +12,7 @@
#include "wx/app.h"
#include "wx/statline.h"
#import <AppKit/NSView.h>
#import <AppKit/NSBox.h>
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);