]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/statbox.cpp
870154ebba917a0cd88953fe0d0b1b6e4c28d7d1
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 verify_noerr(CreateGroupBoxControl(MAC_WXHWND(parent
->MacGetTopLevelWindowRef()),&bounds
, CFSTR("") ,
47 true /*primary*/ , (ControlRef
*)&m_macControl
) ) ;
49 MacPostControlCreate(pos
,size
) ;