1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticBox
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/statbox.h"
15 #include "wx/mac/uma.h"
17 IMPLEMENT_DYNAMIC_CLASS(wxStaticBox
, wxControl
)
19 BEGIN_EVENT_TABLE(wxStaticBox
, wxControl
)
20 EVT_ERASE_BACKGROUND(wxStaticBox::OnEraseBackground
)
27 bool wxStaticBox::Create(wxWindow
*parent
, wxWindowID id
,
28 const wxString
& label
,
34 if ( !wxControl::Create(parent
, id
, pos
, size
,
35 style
, wxDefaultValidator
, name
) )
41 MacPreControlCreate( parent
, id
, label
, pos
, size
,style
, wxDefaultValidator
, name
, &bounds
, title
) ;
43 m_macControl
= (WXWidget
) ::NewControl( MAC_WXHWND(parent
->MacGetRootWindow()) , &bounds
, title
, false , 0 , 0 , 1,
44 kControlGroupBoxTextTitleProc
, (long) this ) ;
46 MacPostControlCreate() ;