]>
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 ///////////////////////////////////////////////////////////////////////////// 
  12 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) 
  13 #pragma implementation "statbox.h" 
  16 #include "wx/wxprec.h" 
  20 #include "wx/statbox.h" 
  21 #include "wx/mac/uma.h" 
  23 #if !USE_SHARED_LIBRARY 
  24 IMPLEMENT_DYNAMIC_CLASS(wxStaticBox
, wxControl
) 
  31 bool wxStaticBox::Create(wxWindow 
*parent
, wxWindowID id
, 
  32            const wxString
& label
, 
  38     m_macIsUserPane 
= FALSE 
; 
  40     if ( !wxControl::Create(parent
, id
, pos
, size
, 
  41                             style
, wxDefaultValidator
, name
) ) 
  46     Rect bounds 
= wxMacGetBoundsForControl( this , pos 
, size 
) ; 
  48     m_peer 
= new wxMacControl(this) ; 
  49     verify_noerr(CreateGroupBoxControl(MAC_WXHWND(parent
->MacGetTopLevelWindowRef()),&bounds
, CFSTR("") ,  
  50         true /*primary*/ , m_peer
->GetControlRefAddr() ) ) ;   
  52     MacPostControlCreate(pos
,size
) ;