]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/statlmac.cpp
   1 ///////////////////////////////////////////////////////////////////////////// 
   2 // Name:        generic/statline.cpp 
   3 // Purpose:     a generic wxStaticLine class 
   4 // Author:      Vadim Zeitlin 
   7 // Copyright:   (c) 1998 Vadim Zeitlin 
   8 // Licence:     wxWindows licence 
   9 ///////////////////////////////////////////////////////////////////////////// 
  11 // ============================================================================ 
  13 // ============================================================================ 
  15 // ---------------------------------------------------------------------------- 
  17 // ---------------------------------------------------------------------------- 
  19 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) 
  20     #pragma implementation "statline.h" 
  23 // For compilers that support precompilation, includes "wx.h". 
  24 #include "wx/wxprec.h" 
  32 #include "wx/statline.h" 
  33 #include "wx/statbox.h" 
  35 #include "wx/mac/uma.h" 
  37 // ============================================================================ 
  39 // ============================================================================ 
  41 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
) 
  43 // ---------------------------------------------------------------------------- 
  45 // ---------------------------------------------------------------------------- 
  47 bool wxStaticLine::Create( wxWindow 
*parent
, 
  54     m_macIsUserPane 
= FALSE 
; 
  56     if ( !wxStaticLineBase::Create(parent
, id
, pos
, size
, 
  57                                    style
, wxDefaultValidator
, name
) ) 
  60     Rect bounds 
= wxMacGetBoundsForControl( this , pos 
, size 
) ; 
  61     m_peer 
= new wxMacControl(this) ; 
  62     verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent
->MacGetTopLevelWindowRef()),&bounds
, m_peer
->GetControlRefAddr() ) ) ;   
  64     MacPostControlCreate(pos
,size
) ; 
  69 #endif //wxUSE_STATLINE