]>
Commit | Line | Data |
---|---|---|
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 | 22 | IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl) |
2f1ae414 | 23 | #endif |
e9576ca5 SC |
24 | |
25 | /* | |
26 | * Static box | |
27 | */ | |
28 | ||
29 | bool wxStaticBox::Create(wxWindow *parent, wxWindowID id, | |
30 | const wxString& label, | |
31 | const wxPoint& pos, | |
32 | const wxSize& size, | |
33 | long style, | |
34 | const wxString& name) | |
35 | { | |
facd6764 SC |
36 | m_macIsUserPane = FALSE ; |
37 | ||
b45ed7a2 VZ |
38 | if ( !wxControl::Create(parent, id, pos, size, |
39 | style, wxDefaultValidator, name) ) | |
40 | return false; | |
41 | ||
facd6764 SC |
42 | m_label = label ; |
43 | ||
44 | Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ; | |
e40298d5 | 45 | |
facd6764 | 46 | m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetTopLevelWindowRef()) , &bounds , "\p" , true , 0 , 0 , 1, |
e40298d5 JS |
47 | kControlGroupBoxTextTitleProc , (long) this ) ; |
48 | ||
facd6764 | 49 | MacPostControlCreate(pos,size) ; |
e40298d5 JS |
50 | |
51 | return TRUE; | |
e9576ca5 | 52 | } |