]> git.saurik.com Git - wxWidgets.git/blame - src/mac/statbox.cpp
Applied patch [ 735304 ] wxDisplay::ChangeMode - does not resize full-screen windows
[wxWidgets.git] / src / mac / statbox.cpp
CommitLineData
e9576ca5
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: statbox.cpp
3// Purpose: wxStaticBox
a31a5f85 4// Author: Stefan Csomor
e9576ca5 5// Modified by:
a31a5f85 6// Created: 1998-01-01
e9576ca5 7// RCS-ID: $Id$
a31a5f85 8// Copyright: (c) Stefan Csomor
e40298d5 9// Licence: wxWindows licence
e9576ca5
SC
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)
e40298d5 25 EVT_ERASE_BACKGROUND(wxStaticBox::OnEraseBackground)
e9576ca5
SC
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{
e40298d5
JS
41 Rect bounds ;
42 Str255 title ;
43
44 MacPreControlCreate( parent , id , label , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ;
45
46 m_macControl = ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1,
47 kControlGroupBoxTextTitleProc , (long) this ) ;
48
49 MacPostControlCreate() ;
50
51 return TRUE;
e9576ca5 52}