- SetName(name);
-
- if (parent) parent->AddChild(this);
-
- if ( id == -1 )
- m_windowId = (int)NewControlId();
- else
- m_windowId = id;
-
- m_windowStyle = style;
-
- // TODO: create static box
- return FALSE;
-}
-
-void wxStaticBox::SetLabel(const wxString& label)
-{
- // TODO
-}
-
-void wxStaticBox::SetSize(int x, int y, int width, int height, int sizeFlags)
-{
- // TODO
+ m_macIsUserPane = FALSE ;
+
+ if ( !wxControl::Create(parent, id, pos, size,
+ style, wxDefaultValidator, name) )
+ return false;
+
+ m_label = label ;
+
+ Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
+
+ m_peer = new wxMacControl(this) ;
+ verify_noerr(CreateGroupBoxControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, CFSTR("") ,
+ true /*primary*/ , m_peer->GetControlRefAddr() ) ) ;
+
+ MacPostControlCreate(pos,size) ;
+
+ return TRUE;