]>
Commit | Line | Data |
---|---|---|
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 | ||
4dd9fdf8 SC |
21 | + (void)initialize |
22 | { | |
23 | static BOOL initialized = NO; | |
24 | if (!initialized) | |
25 | { | |
26 | initialized = YES; | |
27 | wxOSXCocoaClassAddWXMethods( self ); | |
28 | } | |
29 | } | |
dbeddfb9 SC |
30 | |
31 | @end | |
32 | ||
f033830e SC |
33 | wxWidgetImplType* wxWidgetImpl::CreateGroupBox( wxWindowMac* wxpeer, |
34 | wxWindowMac* parent, | |
35 | wxWindowID id, | |
36 | const wxString& label, | |
37 | const wxPoint& pos, | |
38 | const wxSize& size, | |
39 | long style, | |
40 | long extraStyle) | |
41 | { | |
dbeddfb9 | 42 | NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ; |
f033830e | 43 | wxNSBox* v = [[wxNSBox alloc] initWithFrame:r]; |
f033830e | 44 | wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v ); |
4dd9fdf8 | 45 | c->SetFlipped(false); |
f033830e SC |
46 | return c; |
47 | } | |
48 | ||
49 | #endif // wxUSE_STATBOX | |
50 |