]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/statbmp.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/statbmp.cpp
3 // Purpose: wxStaticBitmap
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ===========================================================================
14 // ===========================================================================
16 // ---------------------------------------------------------------------------
18 // ---------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
29 #include "wx/window.h"
30 #include "wx/palmos/private.h"
34 #include "wx/statbmp.h"
37 // ---------------------------------------------------------------------------
39 // ---------------------------------------------------------------------------
41 #if wxUSE_EXTENDED_RTTI
42 WX_DEFINE_FLAGS( wxStaticBitmapStyle
)
44 wxBEGIN_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
)
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
)
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
)
72 wxEND_FLAGS( wxStaticBitmapStyle
)
74 IMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticBitmap
, wxControl
,"wx/statbmp.h")
76 wxBEGIN_PROPERTIES_TABLE(wxStaticBitmap
)
77 wxPROPERTY_FLAGS( WindowStyle
, wxStaticBitmapStyle
, long , SetWindowStyleFlag
, GetWindowStyleFlag
, EMPTY_MACROVALUE
, 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
78 wxEND_PROPERTIES_TABLE()
80 wxBEGIN_HANDLERS_TABLE(wxStaticBitmap
)
81 wxEND_HANDLERS_TABLE()
83 wxCONSTRUCTOR_5( wxStaticBitmap
, wxWindow
* , Parent
, wxWindowID
, Id
, wxBitmap
, Bitmap
, wxPoint
, Position
, wxSize
, Size
)
86 IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap
, wxControl
)
94 // ===========================================================================
96 // ===========================================================================
98 // ---------------------------------------------------------------------------
100 // ---------------------------------------------------------------------------
102 static wxGDIImage
* ConvertImage( const wxGDIImage
& bitmap
)
107 bool wxStaticBitmap::Create(wxWindow
*parent
,
109 const wxGDIImage
& bitmap
,
113 const wxString
& name
)
118 wxBorder
wxStaticBitmap::GetDefaultBorder() const
120 return wxBORDER_NONE
;
123 WXDWORD
wxStaticBitmap::MSWGetStyle(long style
, WXDWORD
*exstyle
) const
128 bool wxStaticBitmap::ImageIsOk() const
133 void wxStaticBitmap::Free()
137 wxSize
wxStaticBitmap::DoGetBestSize() const
142 void wxStaticBitmap::SetImage( const wxGDIImage
* image
)
146 void wxStaticBitmap::SetImageNoCopy( wxGDIImage
* image
)
150 // We need this or the control can never be moved e.g. in Dialog Editor.
151 WXLRESULT
wxStaticBitmap::MSWWindowProc(WXUINT nMsg
,
158 #endif // wxUSE_STATBMP