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
,
44 MacPreControlCreate( parent
, id
, label
, pos
, size
,style
, wxDefaultValidator
, name
, &bounds
, title
) ;
46 m_macControl
= ::NewControl( MAC_WXHWND(parent
->MacGetRootWindow()) , &bounds
, title
, false , 0 , 0 , 1,
47 kControlGroupBoxTextTitleProc
, (long) this ) ;
49 MacPostControlCreate() ;