]> git.saurik.com Git - wxWidgets.git/blame - src/common/statboxcmn.cpp
Fix ribbon documentation warnings.
[wxWidgets.git] / src / common / statboxcmn.cpp
CommitLineData
e1d3601a
PC
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/common/statboxcmn.cpp
3// Purpose: wxStaticBox common code
4// Author: Julian Smart
5// Modified by:
6// Created: 04/01/98
e1d3601a
PC
7// Copyright: (c) Julian Smart
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11// ============================================================================
12// declarations
13// ============================================================================
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
19// For compilers that support precompilation, includes "wx.h".
20#include "wx/wxprec.h"
21
22#ifdef __BORLANDC__
23 #pragma hdrstop
24#endif
25
26#if wxUSE_STATBOX
27
28#include "wx/statbox.h"
29
f313deaa
PC
30extern WXDLLEXPORT_DATA(const char) wxStaticBoxNameStr[] = "groupBox";
31
4ae5ada0
PC
32wxStaticBoxBase::wxStaticBoxBase()
33{
34#ifndef __WXGTK__
35 m_container.DisableSelfFocus();
36#endif
37}
38
e1d3601a
PC
39// ----------------------------------------------------------------------------
40// XTI
41// ----------------------------------------------------------------------------
42
43wxDEFINE_FLAGS( wxStaticBoxStyle )
44wxBEGIN_FLAGS( wxStaticBoxStyle )
45 // new style border flags, we put them first to
46 // use them for streaming out
47 wxFLAGS_MEMBER(wxBORDER_SIMPLE)
48 wxFLAGS_MEMBER(wxBORDER_SUNKEN)
49 wxFLAGS_MEMBER(wxBORDER_DOUBLE)
50 wxFLAGS_MEMBER(wxBORDER_RAISED)
51 wxFLAGS_MEMBER(wxBORDER_STATIC)
52 wxFLAGS_MEMBER(wxBORDER_NONE)
53
54 // old style border flags
55 wxFLAGS_MEMBER(wxSIMPLE_BORDER)
56 wxFLAGS_MEMBER(wxSUNKEN_BORDER)
57 wxFLAGS_MEMBER(wxDOUBLE_BORDER)
58 wxFLAGS_MEMBER(wxRAISED_BORDER)
59 wxFLAGS_MEMBER(wxSTATIC_BORDER)
60 wxFLAGS_MEMBER(wxBORDER)
61
62 // standard window styles
63 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)
64 wxFLAGS_MEMBER(wxCLIP_CHILDREN)
65 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)
66 wxFLAGS_MEMBER(wxWANTS_CHARS)
67 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)
68 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )
69 wxFLAGS_MEMBER(wxVSCROLL)
70 wxFLAGS_MEMBER(wxHSCROLL)
71wxEND_FLAGS( wxStaticBoxStyle )
72
73wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticBox, wxControl, "wx/statbox.h")
74
75wxBEGIN_PROPERTIES_TABLE(wxStaticBox)
76 wxPROPERTY( Label, wxString, SetLabel, GetLabel, wxString(), 0 /*flags*/, \
77 wxT("Helpstring"), wxT("group"))
78 wxPROPERTY_FLAGS( WindowStyle, wxStaticBoxStyle, long, SetWindowStyleFlag, \
79 GetWindowStyleFlag, wxEMPTY_PARAMETER_VALUE, 0 /*flags*/, \
80 wxT("Helpstring"), wxT("group")) // style
81wxEND_PROPERTIES_TABLE()
82
83wxEMPTY_HANDLERS_TABLE(wxStaticBox)
84
85wxCONSTRUCTOR_6( wxStaticBox, wxWindow*, Parent, wxWindowID, Id, \
86 wxString, Label, wxPoint, Position, wxSize, Size, \
87 long, WindowStyle )
88
89#endif // wxUSE_STATBOX