]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/statline.cpp
fixed SetUserScale() calls to use correct scale on Y axis
[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
e4db172a
WS
27#if wxUSE_STATLINE
28
ffecfa5a
JS
29#include "wx/statline.h"
30
e4db172a
WS
31#ifndef WX_PRECOMP
32 #include "wx/log.h"
33#endif
ffecfa5a
JS
34
35#include "wx/palmos/private.h"
ffecfa5a
JS
36
37#ifndef SS_SUNKEN
38 #define SS_SUNKEN 0x00001000L
39#endif
40
41#ifndef SS_NOTIFY
42 #define SS_NOTIFY 0x00000100L
43#endif
44
45// ============================================================================
46// implementation
47// ============================================================================
48
49#if wxUSE_EXTENDED_RTTI
50WX_DEFINE_FLAGS( wxStaticLineStyle )
51
52wxBEGIN_FLAGS( wxStaticLineStyle )
53 // new style border flags, we put them first to
54 // use them for streaming out
55 wxFLAGS_MEMBER(wxBORDER_SIMPLE)
56 wxFLAGS_MEMBER(wxBORDER_SUNKEN)
57 wxFLAGS_MEMBER(wxBORDER_DOUBLE)
58 wxFLAGS_MEMBER(wxBORDER_RAISED)
59 wxFLAGS_MEMBER(wxBORDER_STATIC)
60 wxFLAGS_MEMBER(wxBORDER_NONE)
e2731512 61
ffecfa5a
JS
62 // old style border flags
63 wxFLAGS_MEMBER(wxSIMPLE_BORDER)
64 wxFLAGS_MEMBER(wxSUNKEN_BORDER)
65 wxFLAGS_MEMBER(wxDOUBLE_BORDER)
66 wxFLAGS_MEMBER(wxRAISED_BORDER)
67 wxFLAGS_MEMBER(wxSTATIC_BORDER)
68 wxFLAGS_MEMBER(wxBORDER)
69
70 // standard window styles
71 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)
72 wxFLAGS_MEMBER(wxCLIP_CHILDREN)
73 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)
74 wxFLAGS_MEMBER(wxWANTS_CHARS)
75 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)
76 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )
77 wxFLAGS_MEMBER(wxVSCROLL)
78 wxFLAGS_MEMBER(wxHSCROLL)
79
80 wxFLAGS_MEMBER(wxLI_HORIZONTAL)
81 wxFLAGS_MEMBER(wxLI_VERTICAL)
82
83wxEND_FLAGS( wxStaticLineStyle )
84
85IMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticLine, wxControl,"wx/statline.h")
86
87wxBEGIN_PROPERTIES_TABLE(wxStaticLine)
88 wxPROPERTY_FLAGS( WindowStyle , wxStaticLineStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , EMPTY_MACROVALUE, 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
89wxEND_PROPERTIES_TABLE()
90
91wxBEGIN_HANDLERS_TABLE(wxStaticLine)
92wxEND_HANDLERS_TABLE()
93
94wxCONSTRUCTOR_5( wxStaticLine, wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle)
95
96#else
97IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
98#endif
99
100/*
101 TODO PROPERTIES :
102 style (wxLI_HORIZONTAL)
103*/
104
105// ----------------------------------------------------------------------------
106// wxStaticLine
107// ----------------------------------------------------------------------------
108
109bool wxStaticLine::Create(wxWindow *parent,
110 wxWindowID id,
111 const wxPoint& pos,
112 const wxSize& sizeOrig,
113 long style,
114 const wxString &name)
115{
116 return false;
117}
118
119WXDWORD wxStaticLine::MSWGetStyle(long style, WXDWORD *exstyle) const
120{
121 return 0;
122}
123
124#endif // wxUSE_STATLINE