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
)
29 bool wxStaticBox::Create(wxWindow
*parent
, wxWindowID id
,
30 const wxString
& label
,
36 m_macIsUserPane
= FALSE
;
38 if ( !wxControl::Create(parent
, id
, pos
, size
,
39 style
, wxDefaultValidator
, name
) )
44 Rect bounds
= wxMacGetBoundsForControl( this , pos
, size
) ;
46 m_macControl
= (WXWidget
) ::NewControl( MAC_WXHWND(parent
->MacGetTopLevelWindowRef()) , &bounds
, "\p" , true , 0 , 0 , 1,
47 kControlGroupBoxTextTitleProc
, (long) this ) ;
49 MacPostControlCreate(pos
,size
) ;