]> git.saurik.com Git - wxWidgets.git/blame - src/mac/carbon/statbox.cpp
added missing include file and conditional compilation
[wxWidgets.git] / src / mac / carbon / statbox.cpp
CommitLineData
e9576ca5
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: statbox.cpp
3// Purpose: wxStaticBox
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "statbox.h"
14#endif
15
d8c736e5
GD
16#include "wx/defs.h"
17
e9576ca5 18#include "wx/statbox.h"
519cb848 19#include "wx/mac/uma.h"
e9576ca5 20
2f1ae414 21#if !USE_SHARED_LIBRARY
e9576ca5
SC
22IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)
23
24BEGIN_EVENT_TABLE(wxStaticBox, wxControl)
25 EVT_ERASE_BACKGROUND(wxStaticBox::OnEraseBackground)
26END_EVENT_TABLE()
27
2f1ae414 28#endif
e9576ca5
SC
29
30/*
31 * Static box
32 */
33
34bool wxStaticBox::Create(wxWindow *parent, wxWindowID id,
35 const wxString& label,
36 const wxPoint& pos,
37 const wxSize& size,
38 long style,
39 const wxString& name)
40{
519cb848
SC
41 Rect bounds ;
42 Str255 title ;
43
2f1ae414 44 MacPreControlCreate( parent , id , label , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ;
e9576ca5 45
fdaf613a 46 m_macControl = UMANewControl( parent->GetMacRootWindow() , &bounds , title , false , 0 , 0 , 1,
519cb848
SC
47 kControlGroupBoxTextTitleProc , (long) this ) ;
48
49 MacPostControlCreate() ;
e9576ca5 50
519cb848 51 return TRUE;
e9576ca5 52}