]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/statline.cpp
check for error in GetSelection(long *, long *); clean up SetSelect(long, long)
[wxWidgets.git] / src / palmos / statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: palmos/statline.cpp
3 // Purpose: wxStaticLine class
4 // Author: William Osborne
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id:
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // ============================================================================
13 // declarations
14 // ============================================================================
15
16 // ----------------------------------------------------------------------------
17 // headers
18 // ----------------------------------------------------------------------------
19
20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "statline.h"
22 #endif
23
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
26
27 #ifdef __BORLANDC__
28 #pragma hdrstop
29 #endif
30
31 #include "wx/statline.h"
32
33 #if wxUSE_STATLINE
34
35 #include "wx/palmos/private.h"
36 #include "wx/log.h"
37
38 #ifndef SS_SUNKEN
39 #define SS_SUNKEN 0x00001000L
40 #endif
41
42 #ifndef SS_NOTIFY
43 #define SS_NOTIFY 0x00000100L
44 #endif
45
46 // ============================================================================
47 // implementation
48 // ============================================================================
49
50 #if wxUSE_EXTENDED_RTTI
51 WX_DEFINE_FLAGS( wxStaticLineStyle )
52
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)
62
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)
70
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)
80
81 wxFLAGS_MEMBER(wxLI_HORIZONTAL)
82 wxFLAGS_MEMBER(wxLI_VERTICAL)
83
84 wxEND_FLAGS( wxStaticLineStyle )
85
86 IMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticLine, wxControl,"wx/statline.h")
87
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()
91
92 wxBEGIN_HANDLERS_TABLE(wxStaticLine)
93 wxEND_HANDLERS_TABLE()
94
95 wxCONSTRUCTOR_5( wxStaticLine, wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle)
96
97 #else
98 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
99 #endif
100
101 /*
102 TODO PROPERTIES :
103 style (wxLI_HORIZONTAL)
104 */
105
106 // ----------------------------------------------------------------------------
107 // wxStaticLine
108 // ----------------------------------------------------------------------------
109
110 bool wxStaticLine::Create(wxWindow *parent,
111 wxWindowID id,
112 const wxPoint& pos,
113 const wxSize& sizeOrig,
114 long style,
115 const wxString &name)
116 {
117 return false;
118 }
119
120 WXDWORD wxStaticLine::MSWGetStyle(long style, WXDWORD *exstyle) const
121 {
122 return 0;
123 }
124
125 #endif // wxUSE_STATLINE
126