]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: palmos/statline.cpp
3 // Purpose: wxStaticLine class
4 // Author: William Osborne
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "statline.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
31 #include "wx/statline.h"
35 #include "wx/palmos/private.h"
39 #define SS_SUNKEN 0x00001000L
43 #define SS_NOTIFY 0x00000100L
46 // ============================================================================
48 // ============================================================================
50 #if wxUSE_EXTENDED_RTTI
51 WX_DEFINE_FLAGS( wxStaticLineStyle
)
53 wxBEGIN_FLAGS( wxStaticLineStyle
)
54 // new style border flags, we put them first to
55 // use them for streaming out
56 wxFLAGS_MEMBER(wxBORDER_SIMPLE
)
57 wxFLAGS_MEMBER(wxBORDER_SUNKEN
)
58 wxFLAGS_MEMBER(wxBORDER_DOUBLE
)
59 wxFLAGS_MEMBER(wxBORDER_RAISED
)
60 wxFLAGS_MEMBER(wxBORDER_STATIC
)
61 wxFLAGS_MEMBER(wxBORDER_NONE
)
63 // old style border flags
64 wxFLAGS_MEMBER(wxSIMPLE_BORDER
)
65 wxFLAGS_MEMBER(wxSUNKEN_BORDER
)
66 wxFLAGS_MEMBER(wxDOUBLE_BORDER
)
67 wxFLAGS_MEMBER(wxRAISED_BORDER
)
68 wxFLAGS_MEMBER(wxSTATIC_BORDER
)
69 wxFLAGS_MEMBER(wxBORDER
)
71 // standard window styles
72 wxFLAGS_MEMBER(wxTAB_TRAVERSAL
)
73 wxFLAGS_MEMBER(wxCLIP_CHILDREN
)
74 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW
)
75 wxFLAGS_MEMBER(wxWANTS_CHARS
)
76 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE
)
77 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB
)
78 wxFLAGS_MEMBER(wxVSCROLL
)
79 wxFLAGS_MEMBER(wxHSCROLL
)
81 wxFLAGS_MEMBER(wxLI_HORIZONTAL
)
82 wxFLAGS_MEMBER(wxLI_VERTICAL
)
84 wxEND_FLAGS( wxStaticLineStyle
)
86 IMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticLine
, wxControl
,"wx/statline.h")
88 wxBEGIN_PROPERTIES_TABLE(wxStaticLine
)
89 wxPROPERTY_FLAGS( WindowStyle
, wxStaticLineStyle
, long , SetWindowStyleFlag
, GetWindowStyleFlag
, EMPTY_MACROVALUE
, 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
90 wxEND_PROPERTIES_TABLE()
92 wxBEGIN_HANDLERS_TABLE(wxStaticLine
)
93 wxEND_HANDLERS_TABLE()
95 wxCONSTRUCTOR_5( wxStaticLine
, wxWindow
* , Parent
, wxWindowID
, Id
, wxPoint
, Position
, wxSize
, Size
, long , WindowStyle
)
98 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
)
103 style (wxLI_HORIZONTAL)
106 // ----------------------------------------------------------------------------
108 // ----------------------------------------------------------------------------
110 bool wxStaticLine::Create(wxWindow
*parent
,
113 const wxSize
& sizeOrig
,
115 const wxString
&name
)
120 WXDWORD
wxStaticLine::MSWGetStyle(long style
, WXDWORD
*exstyle
) const
125 #endif // wxUSE_STATLINE