]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/palmos/statbmp.cpp
added wxDisplayFactoryX11 ctor body
[wxWidgets.git] / src / palmos / statbmp.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/palmos/statbmp.cpp
3// Purpose: wxStaticBitmap
4// Author: William Osborne - minimal working wxPalmOS port
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// For compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
27#if wxUSE_STATBMP
28
29#include "wx/window.h"
30#include "wx/palmos/private.h"
31
32#ifndef WX_PRECOMP
33 #include "wx/icon.h"
34 #include "wx/statbmp.h"
35#endif
36
37// ---------------------------------------------------------------------------
38// macors
39// ---------------------------------------------------------------------------
40
41#if wxUSE_EXTENDED_RTTI
42WX_DEFINE_FLAGS( wxStaticBitmapStyle )
43
44wxBEGIN_FLAGS( wxStaticBitmapStyle )
45 // new style border flags, we put them first to
46 // use them for streaming out
47 wxFLAGS_MEMBER(wxBORDER_SIMPLE)
48 wxFLAGS_MEMBER(wxBORDER_SUNKEN)
49 wxFLAGS_MEMBER(wxBORDER_DOUBLE)
50 wxFLAGS_MEMBER(wxBORDER_RAISED)
51 wxFLAGS_MEMBER(wxBORDER_STATIC)
52 wxFLAGS_MEMBER(wxBORDER_NONE)
53
54 // old style border flags
55 wxFLAGS_MEMBER(wxSIMPLE_BORDER)
56 wxFLAGS_MEMBER(wxSUNKEN_BORDER)
57 wxFLAGS_MEMBER(wxDOUBLE_BORDER)
58 wxFLAGS_MEMBER(wxRAISED_BORDER)
59 wxFLAGS_MEMBER(wxSTATIC_BORDER)
60 wxFLAGS_MEMBER(wxBORDER)
61
62 // standard window styles
63 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)
64 wxFLAGS_MEMBER(wxCLIP_CHILDREN)
65 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)
66 wxFLAGS_MEMBER(wxWANTS_CHARS)
67 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)
68 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )
69 wxFLAGS_MEMBER(wxVSCROLL)
70 wxFLAGS_MEMBER(wxHSCROLL)
71
72wxEND_FLAGS( wxStaticBitmapStyle )
73
74IMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticBitmap, wxControl,"wx/statbmp.h")
75
76wxBEGIN_PROPERTIES_TABLE(wxStaticBitmap)
77 wxPROPERTY_FLAGS( WindowStyle , wxStaticBitmapStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , EMPTY_MACROVALUE, 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
78wxEND_PROPERTIES_TABLE()
79
80wxBEGIN_HANDLERS_TABLE(wxStaticBitmap)
81wxEND_HANDLERS_TABLE()
82
83wxCONSTRUCTOR_5( wxStaticBitmap, wxWindow* , Parent , wxWindowID , Id , wxBitmap, Bitmap, wxPoint , Position , wxSize , Size )
84
85#else
86IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
87#endif
88
89/*
90 TODO PROPERTIES :
91 bitmap
92*/
93
94// ===========================================================================
95// implementation
96// ===========================================================================
97
98// ---------------------------------------------------------------------------
99// wxStaticBitmap
100// ---------------------------------------------------------------------------
101
102static wxGDIImage* ConvertImage( const wxGDIImage& bitmap )
103{
104 return NULL;
105}
106
107bool wxStaticBitmap::Create(wxWindow *parent,
108 wxWindowID id,
109 const wxGDIImage& bitmap,
110 const wxPoint& pos,
111 const wxSize& size,
112 long style,
113 const wxString& name)
114{
115 return false;
116}
117
118wxBorder wxStaticBitmap::GetDefaultBorder() const
119{
120 return wxBORDER_NONE;
121}
122
123WXDWORD wxStaticBitmap::MSWGetStyle(long style, WXDWORD *exstyle) const
124{
125 return 0;
126}
127
128bool wxStaticBitmap::ImageIsOk() const
129{
130 return false;
131}
132
133void wxStaticBitmap::Free()
134{
135}
136
137wxSize wxStaticBitmap::DoGetBestSize() const
138{
139 return wxSize(0,0);
140}
141
142void wxStaticBitmap::SetImage( const wxGDIImage* image )
143{
144}
145
146void wxStaticBitmap::SetImageNoCopy( wxGDIImage* image)
147{
148}
149
150// We need this or the control can never be moved e.g. in Dialog Editor.
151WXLRESULT wxStaticBitmap::MSWWindowProc(WXUINT nMsg,
152 WXWPARAM wParam,
153 WXLPARAM lParam)
154{
155 return false;
156}
157
158#endif // wxUSE_STATBMP