]> git.saurik.com Git - wxWidgets.git/blame - src/osx/cocoa/statbox.mm
define MIIM_BITMAP &c in wx/msw/missing.h instead of msw/menu.cpp as menuitem.cpp...
[wxWidgets.git] / src / osx / cocoa / statbox.mm
CommitLineData
f033830e
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: statbox.cpp 54129 2008-06-11 19:30:52Z SC $
8// Copyright: (c) Stefan Csomor
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#include "wx/wxprec.h"
13
14#if wxUSE_STATBOX
15
16#include "wx/statbox.h"
17#include "wx/osx/private.h"
18
dbeddfb9
SC
19@implementation wxNSBox
20
0c530e5a 21WXCOCOAIMPL_COMMON_IMPLEMENTATION_NOT_FLIPPED
dbeddfb9
SC
22
23@end
24
f033830e
SC
25wxWidgetImplType* wxWidgetImpl::CreateGroupBox( wxWindowMac* wxpeer,
26 wxWindowMac* parent,
27 wxWindowID id,
28 const wxString& label,
29 const wxPoint& pos,
30 const wxSize& size,
31 long style,
32 long extraStyle)
33{
dbeddfb9 34 NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
f033830e 35 wxNSBox* v = [[wxNSBox alloc] initWithFrame:r];
f033830e
SC
36 wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
37 [v setImplementation:c];
38 return c;
39}
40
41#endif // wxUSE_STATBOX
42