]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/statline.cpp
wxControl::SetLabel no longer strips out codes so do it here
[wxWidgets.git] / src / palmos / statline.cpp
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////////
e2731512 2// Name: src/palmos/statline.cpp
ffecfa5a 3// Purpose: wxStaticLine class
e2731512 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e2731512 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
ffecfa5a
JS
20// For compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
27#include "wx/statline.h"
28
29#if wxUSE_STATLINE
30
31#include "wx/palmos/private.h"
32#include "wx/log.h"
33
34#ifndef SS_SUNKEN
35 #define SS_SUNKEN 0x00001000L
36#endif
37
38#ifndef SS_NOTIFY
39 #define SS_NOTIFY 0x00000100L
40#endif
41
42// ============================================================================
43// implementation
44// ============================================================================
45
46#if wxUSE_EXTENDED_RTTI
47WX_DEFINE_FLAGS( wxStaticLineStyle )
48
49wxBEGIN_FLAGS( wxStaticLineStyle )
50 // new style border flags, we put them first to
51 // use them for streaming out
52 wxFLAGS_MEMBER(wxBORDER_SIMPLE)
53 wxFLAGS_MEMBER(wxBORDER_SUNKEN)
54 wxFLAGS_MEMBER(wxBORDER_DOUBLE)
55 wxFLAGS_MEMBER(wxBORDER_RAISED)
56 wxFLAGS_MEMBER(wxBORDER_STATIC)
57 wxFLAGS_MEMBER(wxBORDER_NONE)
e2731512 58
ffecfa5a
JS
59 // old style border flags
60 wxFLAGS_MEMBER(wxSIMPLE_BORDER)
61 wxFLAGS_MEMBER(wxSUNKEN_BORDER)
62 wxFLAGS_MEMBER(wxDOUBLE_BORDER)
63 wxFLAGS_MEMBER(wxRAISED_BORDER)
64 wxFLAGS_MEMBER(wxSTATIC_BORDER)
65 wxFLAGS_MEMBER(wxBORDER)
66
67 // standard window styles
68 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)
69 wxFLAGS_MEMBER(wxCLIP_CHILDREN)
70 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)
71 wxFLAGS_MEMBER(wxWANTS_CHARS)
72 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)
73 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )
74 wxFLAGS_MEMBER(wxVSCROLL)
75 wxFLAGS_MEMBER(wxHSCROLL)
76
77 wxFLAGS_MEMBER(wxLI_HORIZONTAL)
78 wxFLAGS_MEMBER(wxLI_VERTICAL)
79
80wxEND_FLAGS( wxStaticLineStyle )
81
82IMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticLine, wxControl,"wx/statline.h")
83
84wxBEGIN_PROPERTIES_TABLE(wxStaticLine)
85 wxPROPERTY_FLAGS( WindowStyle , wxStaticLineStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , EMPTY_MACROVALUE, 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
86wxEND_PROPERTIES_TABLE()
87
88wxBEGIN_HANDLERS_TABLE(wxStaticLine)
89wxEND_HANDLERS_TABLE()
90
91wxCONSTRUCTOR_5( wxStaticLine, wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle)
92
93#else
94IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
95#endif
96
97/*
98 TODO PROPERTIES :
99 style (wxLI_HORIZONTAL)
100*/
101
102// ----------------------------------------------------------------------------
103// wxStaticLine
104// ----------------------------------------------------------------------------
105
106bool wxStaticLine::Create(wxWindow *parent,
107 wxWindowID id,
108 const wxPoint& pos,
109 const wxSize& sizeOrig,
110 long style,
111 const wxString &name)
112{
113 return false;
114}
115
116WXDWORD wxStaticLine::MSWGetStyle(long style, WXDWORD *exstyle) const
117{
118 return 0;
119}
120
121#endif // wxUSE_STATLINE
122