]> git.saurik.com Git - wxWidgets.git/blame - src/mac/statbox.cpp
applied patch to uncover cells next to 0 automatically
[wxWidgets.git] / src / mac / 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
16#include "wx/statbox.h"
519cb848 17#include "wx/mac/uma.h"
e9576ca5 18
2f1ae414 19#if !USE_SHARED_LIBRARY
e9576ca5
SC
20IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)
21
22BEGIN_EVENT_TABLE(wxStaticBox, wxControl)
23 EVT_ERASE_BACKGROUND(wxStaticBox::OnEraseBackground)
24END_EVENT_TABLE()
25
2f1ae414 26#endif
e9576ca5
SC
27
28/*
29 * Static box
30 */
31
32bool wxStaticBox::Create(wxWindow *parent, wxWindowID id,
33 const wxString& label,
34 const wxPoint& pos,
35 const wxSize& size,
36 long style,
37 const wxString& name)
38{
519cb848
SC
39 Rect bounds ;
40 Str255 title ;
41
2f1ae414 42 MacPreControlCreate( parent , id , label , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ;
e9576ca5 43
519cb848
SC
44 m_macControl = UMANewControl( parent->GetMacRootWindow() , &bounds , title , true , 0 , 0 , 1,
45 kControlGroupBoxTextTitleProc , (long) this ) ;
46
47 MacPostControlCreate() ;
e9576ca5 48
519cb848 49 return TRUE;
e9576ca5 50}