]> git.saurik.com Git - wxWidgets.git/blame - src/qt/statbox.cpp
attempts at making modal dialogs without parent work - failed
[wxWidgets.git] / src / qt / statbox.cpp
CommitLineData
7c78e7c7
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: statbox.cpp
01b2eeec
KB
3// Purpose: wxStaticBox
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
7c78e7c7
RR
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "statbox.h"
14#endif
15
16#include "wx/statbox.h"
17
01b2eeec 18IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)
7c78e7c7 19
01b2eeec
KB
20BEGIN_EVENT_TABLE(wxStaticBox, wxControl)
21 EVT_ERASE_BACKGROUND(wxStaticBox::OnEraseBackground)
22END_EVENT_TABLE()
7c78e7c7 23
01b2eeec
KB
24
25/*
26 * Static box
27 */
28
29bool 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)
7c78e7c7 35{
01b2eeec
KB
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;
7c78e7c7 44
01b2eeec
KB
45 m_windowStyle = style;
46
47 // TODO: create static box
48 return FALSE;
49}
50
51void wxStaticBox::SetLabel(const wxString& label)
7c78e7c7 52{
01b2eeec
KB
53 // TODO
54}
7c78e7c7 55
01b2eeec 56void wxStaticBox::SetSize(int x, int y, int width, int height, int sizeFlags)
7c78e7c7 57{
01b2eeec
KB
58 // TODO
59}
60