1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/mac/classic/statbox.cpp
3 // Purpose: wxStaticBox
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/wxprec.h"
18 #include "wx/statbox.h"
19 #include "wx/mac/uma.h"
21 IMPLEMENT_DYNAMIC_CLASS(wxStaticBox
, wxControl
)
23 BEGIN_EVENT_TABLE(wxStaticBox
, wxControl
)
24 EVT_ERASE_BACKGROUND(wxStaticBox::OnEraseBackground
)
31 bool wxStaticBox::Create(wxWindow
*parent
, wxWindowID id
,
32 const wxString
& label
,
38 if ( !wxControl::Create(parent
, id
, pos
, size
,
39 style
, wxDefaultValidator
, name
) )
45 MacPreControlCreate( parent
, id
, label
, pos
, size
,style
, wxDefaultValidator
, name
, &bounds
, title
) ;
47 m_macControl
= (WXWidget
) ::NewControl( MAC_WXHWND(parent
->MacGetRootWindow()) , &bounds
, title
, false , 0 , 0 , 1,
48 kControlGroupBoxTextTitleProc
, (long) this ) ;
50 MacPostControlCreate() ;