]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/statbmp.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticBitmap
4 // Author: William Osborne
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ===========================================================================
14 // ===========================================================================
16 // ---------------------------------------------------------------------------
18 // ---------------------------------------------------------------------------
20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "statbmp.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
33 #include "wx/window.h"
34 #include "wx/palmos/private.h"
38 #include "wx/statbmp.h"
41 // ---------------------------------------------------------------------------
43 // ---------------------------------------------------------------------------
45 #if wxUSE_EXTENDED_RTTI
46 WX_DEFINE_FLAGS( wxStaticBitmapStyle
)
48 wxBEGIN_FLAGS( wxStaticBitmapStyle
)
49 // new style border flags, we put them first to
50 // use them for streaming out
51 wxFLAGS_MEMBER(wxBORDER_SIMPLE
)
52 wxFLAGS_MEMBER(wxBORDER_SUNKEN
)
53 wxFLAGS_MEMBER(wxBORDER_DOUBLE
)
54 wxFLAGS_MEMBER(wxBORDER_RAISED
)
55 wxFLAGS_MEMBER(wxBORDER_STATIC
)
56 wxFLAGS_MEMBER(wxBORDER_NONE
)
58 // old style border flags
59 wxFLAGS_MEMBER(wxSIMPLE_BORDER
)
60 wxFLAGS_MEMBER(wxSUNKEN_BORDER
)
61 wxFLAGS_MEMBER(wxDOUBLE_BORDER
)
62 wxFLAGS_MEMBER(wxRAISED_BORDER
)
63 wxFLAGS_MEMBER(wxSTATIC_BORDER
)
64 wxFLAGS_MEMBER(wxBORDER
)
66 // standard window styles
67 wxFLAGS_MEMBER(wxTAB_TRAVERSAL
)
68 wxFLAGS_MEMBER(wxCLIP_CHILDREN
)
69 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW
)
70 wxFLAGS_MEMBER(wxWANTS_CHARS
)
71 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE
)
72 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB
)
73 wxFLAGS_MEMBER(wxVSCROLL
)
74 wxFLAGS_MEMBER(wxHSCROLL
)
76 wxEND_FLAGS( wxStaticBitmapStyle
)
78 IMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticBitmap
, wxControl
,"wx/statbmp.h")
80 wxBEGIN_PROPERTIES_TABLE(wxStaticBitmap
)
81 wxPROPERTY_FLAGS( WindowStyle
, wxStaticBitmapStyle
, long , SetWindowStyleFlag
, GetWindowStyleFlag
, EMPTY_MACROVALUE
, 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
82 wxEND_PROPERTIES_TABLE()
84 wxBEGIN_HANDLERS_TABLE(wxStaticBitmap
)
85 wxEND_HANDLERS_TABLE()
87 wxCONSTRUCTOR_5( wxStaticBitmap
, wxWindow
* , Parent
, wxWindowID
, Id
, wxBitmap
, Bitmap
, wxPoint
, Position
, wxSize
, Size
)
90 IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap
, wxControl
)
98 // ===========================================================================
100 // ===========================================================================
102 // ---------------------------------------------------------------------------
104 // ---------------------------------------------------------------------------
106 static wxGDIImage
* ConvertImage( const wxGDIImage
& bitmap
)
111 bool wxStaticBitmap::Create(wxWindow
*parent
,
113 const wxGDIImage
& bitmap
,
117 const wxString
& name
)
122 wxBorder
wxStaticBitmap::GetDefaultBorder() const
124 return wxBORDER_NONE
;
127 WXDWORD
wxStaticBitmap::MSWGetStyle(long style
, WXDWORD
*exstyle
) const
132 bool wxStaticBitmap::ImageIsOk() const
137 void wxStaticBitmap::Free()
141 wxSize
wxStaticBitmap::DoGetBestSize() const
146 void wxStaticBitmap::SetImage( const wxGDIImage
* image
)
150 void wxStaticBitmap::SetImageNoCopy( wxGDIImage
* image
)
154 // We need this or the control can never be moved e.g. in Dialog Editor.
155 WXLRESULT
wxStaticBitmap::MSWWindowProc(WXUINT nMsg
,
162 #endif // wxUSE_STATBMP