]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/statbox.cpp
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_peer
= new wxMacControl() ;
47 verify_noerr(CreateGroupBoxControl(MAC_WXHWND(parent
->MacGetTopLevelWindowRef()),&bounds
, CFSTR("") ,
48 true /*primary*/ , *m_peer
) ) ;
50 MacPostControlCreate(pos
,size
) ;