| 1 | ///////////////////////////////////////////////////////////////////////////// |
| 2 | // Name: statbox.cpp |
| 3 | // Purpose: wxStaticBox |
| 4 | // Author: AUTHOR |
| 5 | // Modified by: |
| 6 | // Created: ??/??/98 |
| 7 | // RCS-ID: $Id$ |
| 8 | // Copyright: (c) AUTHOR |
| 9 | // Licence: wxWindows licence |
| 10 | ///////////////////////////////////////////////////////////////////////////// |
| 11 | |
| 12 | #ifdef __GNUG__ |
| 13 | #pragma implementation "statbox.h" |
| 14 | #endif |
| 15 | |
| 16 | #include "wx/statbox.h" |
| 17 | |
| 18 | IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl) |
| 19 | |
| 20 | BEGIN_EVENT_TABLE(wxStaticBox, wxControl) |
| 21 | EVT_ERASE_BACKGROUND(wxStaticBox::OnEraseBackground) |
| 22 | END_EVENT_TABLE() |
| 23 | |
| 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 | { |
| 36 | SetName(name); |
| 37 | |
| 38 | if (parent) parent->AddChild(this); |
| 39 | |
| 40 | if ( id == -1 ) |
| 41 | m_windowId = (int)NewControlId(); |
| 42 | else |
| 43 | m_windowId = id; |
| 44 | |
| 45 | m_windowStyle = style; |
| 46 | |
| 47 | // TODO: create static box |
| 48 | return FALSE; |
| 49 | } |
| 50 | |
| 51 | void wxStaticBox::SetLabel(const wxString& label) |
| 52 | { |
| 53 | // TODO |
| 54 | } |
| 55 | |
| 56 | void wxStaticBox::SetSize(int x, int y, int width, int height, int sizeFlags) |
| 57 | { |
| 58 | // TODO |
| 59 | } |
| 60 | |