Implemented wxStaticLine under Mac. I thought I had
commited this already, actually. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
673dfcfac1
commit
1d261710b8
@ -30,6 +30,8 @@
|
|||||||
#include "wx/statline.h"
|
#include "wx/statline.h"
|
||||||
#include "wx/statbox.h"
|
#include "wx/statbox.h"
|
||||||
|
|
||||||
|
#include <wx/mac/uma.h>
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// implementation
|
// implementation
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@ -47,15 +49,15 @@ bool wxStaticLine::Create( wxWindow *parent,
|
|||||||
long style,
|
long style,
|
||||||
const wxString &name)
|
const wxString &name)
|
||||||
{
|
{
|
||||||
if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
|
Rect bounds ;
|
||||||
return FALSE;
|
Str255 title ;
|
||||||
|
|
||||||
|
MacPreControlCreate( parent , id , "" , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ;
|
||||||
|
|
||||||
// ok, this is ugly but it's better than nothing: use a thin static box to
|
m_macControl = UMANewControl( parent->GetMacRootWindow() , &bounds , title , true , 0 , 0 , 1,
|
||||||
// emulate static line
|
kControlSeparatorLineProc , (long) this ) ;
|
||||||
|
|
||||||
wxSize sizeReal = AdjustSize(size);
|
MacPostControlCreate() ;
|
||||||
|
|
||||||
// m_statbox = new wxStaticBox(parent, id, wxT(""), pos, sizeReal, style, name);
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
#include "wx/statline.h"
|
#include "wx/statline.h"
|
||||||
#include "wx/statbox.h"
|
#include "wx/statbox.h"
|
||||||
|
|
||||||
|
#include <wx/mac/uma.h>
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// implementation
|
// implementation
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@ -47,15 +49,15 @@ bool wxStaticLine::Create( wxWindow *parent,
|
|||||||
long style,
|
long style,
|
||||||
const wxString &name)
|
const wxString &name)
|
||||||
{
|
{
|
||||||
if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
|
Rect bounds ;
|
||||||
return FALSE;
|
Str255 title ;
|
||||||
|
|
||||||
|
MacPreControlCreate( parent , id , "" , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ;
|
||||||
|
|
||||||
// ok, this is ugly but it's better than nothing: use a thin static box to
|
m_macControl = UMANewControl( parent->GetMacRootWindow() , &bounds , title , true , 0 , 0 , 1,
|
||||||
// emulate static line
|
kControlSeparatorLineProc , (long) this ) ;
|
||||||
|
|
||||||
wxSize sizeReal = AdjustSize(size);
|
MacPostControlCreate() ;
|
||||||
|
|
||||||
// m_statbox = new wxStaticBox(parent, id, wxT(""), pos, sizeReal, style, name);
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user