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