1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticBox
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "statbox.h"
18 #include "wx/statbox.h"
19 #include "wx/mac/uma.h"
21 #if !USE_SHARED_LIBRARY
22 IMPLEMENT_DYNAMIC_CLASS(wxStaticBox
, wxControl
)
24 BEGIN_EVENT_TABLE(wxStaticBox
, wxControl
)
25 EVT_ERASE_BACKGROUND(wxStaticBox::OnEraseBackground
)
34 bool wxStaticBox::Create(wxWindow
*parent
, wxWindowID id
,
35 const wxString
& label
,
41 if ( !wxControl::Create(parent
, id
, pos
, size
,
42 style
, wxDefaultValidator
, name
) )
48 MacPreControlCreate( parent
, id
, label
, pos
, size
,style
, wxDefaultValidator
, name
, &bounds
, title
) ;
50 m_macControl
= ::NewControl( MAC_WXHWND(parent
->MacGetRootWindow()) , &bounds
, title
, false , 0 , 0 , 1,
51 kControlGroupBoxTextTitleProc
, (long) this ) ;
53 MacPostControlCreate() ;