]> git.saurik.com Git - wxWidgets.git/blame - src/mac/classic/statbox.cpp
made wx-config work in place on systems where /bin/sh is a Bourne shell (such as...
[wxWidgets.git] / src / mac / classic / statbox.cpp
CommitLineData
2646f485
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: statbox.cpp
3// Purpose: wxStaticBox
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
65571936 9// Licence: wxWindows licence
2646f485
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "statbox.h"
14#endif
15
16#include "wx/defs.h"
17
18#include "wx/statbox.h"
19#include "wx/mac/uma.h"
20
2646f485
SC
21IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)
22
23BEGIN_EVENT_TABLE(wxStaticBox, wxControl)
24 EVT_ERASE_BACKGROUND(wxStaticBox::OnEraseBackground)
25END_EVENT_TABLE()
26
2646f485
SC
27/*
28 * Static box
29 */
30
31bool wxStaticBox::Create(wxWindow *parent, wxWindowID id,
32 const wxString& label,
33 const wxPoint& pos,
34 const wxSize& size,
35 long style,
36 const wxString& name)
37{
38 if ( !wxControl::Create(parent, id, pos, size,
39 style, wxDefaultValidator, name) )
40 return false;
41
42 Rect bounds ;
43 Str255 title ;
44
45 MacPreControlCreate( parent , id , label , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ;
46
6bc3b8e9 47 m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1,
2646f485
SC
48 kControlGroupBoxTextTitleProc , (long) this ) ;
49
50 MacPostControlCreate() ;
51
52 return TRUE;
53}