]> git.saurik.com Git - wxWidgets.git/blame - src/common/statlinecmn.cpp
Return NULL from wxWindow::GetCapture() when the capture is being lost.
[wxWidgets.git] / src / common / statlinecmn.cpp
CommitLineData
e1d3601a
PC
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/common/statlinecmn.cpp
3// Purpose: wxStaticLine common code
4// Author: Vadim Zeitlin
5// Created: 28.06.99
e1d3601a
PC
6// Copyright: (c) 1998 Vadim Zeitlin
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10// ============================================================================
11// declarations
12// ============================================================================
13
14// ----------------------------------------------------------------------------
15// headers
16// ----------------------------------------------------------------------------
17
18// For compilers that support precompilation, includes "wx.h".
19#include "wx/wxprec.h"
20
21#ifdef __BORLANDC__
22 #pragma hdrstop
23#endif
24
25#include "wx/statline.h"
26
27#if wxUSE_STATLINE
28
f313deaa
PC
29extern WXDLLEXPORT_DATA(const char) wxStaticLineNameStr[] = "staticLine";
30
e1d3601a
PC
31// ----------------------------------------------------------------------------
32// XTI
33// ----------------------------------------------------------------------------
34
35wxDEFINE_FLAGS( wxStaticLineStyle )
36wxBEGIN_FLAGS( wxStaticLineStyle )
37 // new style border flags, we put them first to
38 // use them for streaming out
39 wxFLAGS_MEMBER(wxBORDER_SIMPLE)
40 wxFLAGS_MEMBER(wxBORDER_SUNKEN)
41 wxFLAGS_MEMBER(wxBORDER_DOUBLE)
42 wxFLAGS_MEMBER(wxBORDER_RAISED)
43 wxFLAGS_MEMBER(wxBORDER_STATIC)
44 wxFLAGS_MEMBER(wxBORDER_NONE)
45
46 // old style border flags
47 wxFLAGS_MEMBER(wxSIMPLE_BORDER)
48 wxFLAGS_MEMBER(wxSUNKEN_BORDER)
49 wxFLAGS_MEMBER(wxDOUBLE_BORDER)
50 wxFLAGS_MEMBER(wxRAISED_BORDER)
51 wxFLAGS_MEMBER(wxSTATIC_BORDER)
52 wxFLAGS_MEMBER(wxBORDER)
53
54 // standard window styles
55 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)
56 wxFLAGS_MEMBER(wxCLIP_CHILDREN)
57 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)
58 wxFLAGS_MEMBER(wxWANTS_CHARS)
59 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)
60 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )
61 wxFLAGS_MEMBER(wxVSCROLL)
62 wxFLAGS_MEMBER(wxHSCROLL)
63
64 wxFLAGS_MEMBER(wxLI_HORIZONTAL)
65 wxFLAGS_MEMBER(wxLI_VERTICAL)
66wxEND_FLAGS( wxStaticLineStyle )
67
68wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticLine, wxControl, "wx/statline.h")
69
70wxBEGIN_PROPERTIES_TABLE(wxStaticLine)
71 wxPROPERTY_FLAGS( WindowStyle, wxStaticLineStyle, long, SetWindowStyleFlag, \
72 GetWindowStyleFlag, wxEMPTY_PARAMETER_VALUE, 0 /*flags*/, \
73 wxT("Helpstring"), wxT("group")) // style
74wxEND_PROPERTIES_TABLE()
75
76wxEMPTY_HANDLERS_TABLE(wxStaticLine)
77
78wxCONSTRUCTOR_5( wxStaticLine, wxWindow*, Parent, wxWindowID, Id, \
79 wxPoint, Position, wxSize, Size, long, WindowStyle)
80
81#endif // wxUSE_STATLINE