]> git.saurik.com Git - wxWidgets.git/blob - src/osx/cocoa/statbox.mm
add parentheses for && inside || to fix g++ 4.3 warning
[wxWidgets.git] / src / osx / cocoa / statbox.mm
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
19 wxWidgetImplType* wxWidgetImpl::CreateGroupBox( wxWindowMac* wxpeer,
20 wxWindowMac* parent,
21 wxWindowID id,
22 const wxString& label,
23 const wxPoint& pos,
24 const wxSize& size,
25 long style,
26 long extraStyle)
27 {
28 NSView* sv = (wxpeer->GetParent()->GetHandle() );
29
30 NSRect r = wxToNSRect( sv, wxRect( pos, size) );
31 // Rect bounds = wxMacGetBoundsForControl( wxpeer, pos , size ) ;
32 wxNSBox* v = [[wxNSBox alloc] initWithFrame:r];
33 [sv addSubview:v];
34 wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
35 [v setImplementation:c];
36 return c;
37 }
38
39 #endif // wxUSE_STATBOX
40