]>
git.saurik.com Git - wxWidgets.git/blob - src/common/statlinecmn.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/statlinecmn.cpp
3 // Purpose: wxStaticLine common code
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 1998 Vadim Zeitlin
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // ============================================================================
12 // ============================================================================
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 // For compilers that support precompilation, includes "wx.h".
19 #include "wx/wxprec.h"
25 #include "wx/statline.h"
29 extern WXDLLEXPORT_DATA(const char) wxStaticLineNameStr
[] = "staticLine";
31 // ----------------------------------------------------------------------------
33 // ----------------------------------------------------------------------------
35 wxDEFINE_FLAGS( wxStaticLineStyle
)
36 wxBEGIN_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
)
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
)
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
)
64 wxFLAGS_MEMBER(wxLI_HORIZONTAL
)
65 wxFLAGS_MEMBER(wxLI_VERTICAL
)
66 wxEND_FLAGS( wxStaticLineStyle
)
68 wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticLine
, wxControl
, "wx/statline.h")
70 wxBEGIN_PROPERTIES_TABLE(wxStaticLine
)
71 wxPROPERTY_FLAGS( WindowStyle
, wxStaticLineStyle
, long, SetWindowStyleFlag
, \
72 GetWindowStyleFlag
, wxEMPTY_PARAMETER_VALUE
, 0 /*flags*/, \
73 wxT("Helpstring"), wxT("group")) // style
74 wxEND_PROPERTIES_TABLE()
76 wxEMPTY_HANDLERS_TABLE(wxStaticLine
)
78 wxCONSTRUCTOR_5( wxStaticLine
, wxWindow
*, Parent
, wxWindowID
, Id
, \
79 wxPoint
, Position
, wxSize
, Size
, long, WindowStyle
)
81 #endif // wxUSE_STATLINE