]>
git.saurik.com Git - wxWidgets.git/blob - src/common/statbmpcmn.cpp
393d373724a5205213ae8e61558d459992f90195
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/statbmpcmn.cpp
3 // Purpose: wxStaticBitmap common code
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
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/statbmp.h"
31 extern WXDLLEXPORT_DATA(const char) wxStaticBitmapNameStr
[] = "staticBitmap";
33 // ---------------------------------------------------------------------------
35 // ---------------------------------------------------------------------------
37 wxDEFINE_FLAGS( wxStaticBitmapStyle
)
38 wxBEGIN_FLAGS( wxStaticBitmapStyle
)
39 // new style border flags, we put them first to
40 // use them for streaming out
41 wxFLAGS_MEMBER(wxBORDER_SIMPLE
)
42 wxFLAGS_MEMBER(wxBORDER_SUNKEN
)
43 wxFLAGS_MEMBER(wxBORDER_DOUBLE
)
44 wxFLAGS_MEMBER(wxBORDER_RAISED
)
45 wxFLAGS_MEMBER(wxBORDER_STATIC
)
46 wxFLAGS_MEMBER(wxBORDER_NONE
)
48 // old style border flags
49 wxFLAGS_MEMBER(wxSIMPLE_BORDER
)
50 wxFLAGS_MEMBER(wxSUNKEN_BORDER
)
51 wxFLAGS_MEMBER(wxDOUBLE_BORDER
)
52 wxFLAGS_MEMBER(wxRAISED_BORDER
)
53 wxFLAGS_MEMBER(wxSTATIC_BORDER
)
54 wxFLAGS_MEMBER(wxBORDER
)
56 // standard window styles
57 wxFLAGS_MEMBER(wxTAB_TRAVERSAL
)
58 wxFLAGS_MEMBER(wxCLIP_CHILDREN
)
59 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW
)
60 wxFLAGS_MEMBER(wxWANTS_CHARS
)
61 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE
)
62 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB
)
63 wxFLAGS_MEMBER(wxVSCROLL
)
64 wxFLAGS_MEMBER(wxHSCROLL
)
66 wxEND_FLAGS( wxStaticBitmapStyle
)
68 wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticBitmap
, wxControl
, "wx/statbmp.h")
70 wxBEGIN_PROPERTIES_TABLE(wxStaticBitmap
)
71 wxPROPERTY_FLAGS( WindowStyle
, wxStaticBitmapStyle
, long, \
72 SetWindowStyleFlag
, GetWindowStyleFlag
, \
73 wxEMPTY_PARAMETER_VALUE
, 0 /*flags*/, wxT("Helpstring"), \
74 wxT("group")) // style
75 wxEND_PROPERTIES_TABLE()
77 wxEMPTY_HANDLERS_TABLE(wxStaticBitmap
)
79 wxCONSTRUCTOR_5( wxStaticBitmap
, wxWindow
*, Parent
, wxWindowID
, Id
, \
80 wxBitmap
, Bitmap
, wxPoint
, Position
, wxSize
, Size
)
87 #endif // wxUSE_STATBMP