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:
@@ -12,7 +12,7 @@
|
|||||||
#include "wx/app.h"
|
#include "wx/app.h"
|
||||||
#include "wx/statline.h"
|
#include "wx/statline.h"
|
||||||
|
|
||||||
#import <AppKit/NSView.h>
|
#import <AppKit/NSBox.h>
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
|
IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
|
||||||
BEGIN_EVENT_TABLE(wxStaticLine, wxStaticLineBase)
|
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))
|
if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
|
||||||
return false;
|
return false;
|
||||||
SetNSView([[NSView alloc] initWithFrame: MakeDefaultNSRect(size)]);
|
SetNSView([[NSBox alloc] initWithFrame: MakeDefaultNSRect(size)]);
|
||||||
[m_cocoaNSView release];
|
[m_cocoaNSView release];
|
||||||
|
[(NSBox*)m_cocoaNSView setBoxType: NSBoxSeparator];
|
||||||
if(m_parent)
|
if(m_parent)
|
||||||
m_parent->CocoaAddChild(this);
|
m_parent->CocoaAddChild(this);
|
||||||
SetInitialFrameRect(pos,size);
|
SetInitialFrameRect(pos,size);
|
||||||
|
Reference in New Issue
Block a user