]>
git.saurik.com Git - wxWidgets.git/blob - src/common/statbmpcmn.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/statbmpcmn.cpp
3 // Purpose: wxStaticBitmap common code
4 // Author: Julian Smart
7 // RCS-ID: $Id: statbmp.cpp 42816 2006-10-31 08:50:17Z RD $
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 // ---------------------------------------------------------------------------
33 // ---------------------------------------------------------------------------
35 wxDEFINE_FLAGS( wxStaticBitmapStyle
)
36 wxBEGIN_FLAGS( wxStaticBitmapStyle
)
37 // new style border flags, we put them first to
38 // use them for streaming out
39 wxFLAGS_MEMBER(wxBORDER_SIMPLE
)
40 wxFLAGS_MEMBER(wxBORDER_SUNKEN
)
41 wxFLAGS_MEMBER(wxBORDER_DOUBLE
)
42 wxFLAGS_MEMBER(wxBORDER_RAISED
)
43 wxFLAGS_MEMBER(wxBORDER_STATIC
)
44 wxFLAGS_MEMBER(wxBORDER_NONE
)
46 // old style border flags
47 wxFLAGS_MEMBER(wxSIMPLE_BORDER
)
48 wxFLAGS_MEMBER(wxSUNKEN_BORDER
)
49 wxFLAGS_MEMBER(wxDOUBLE_BORDER
)
50 wxFLAGS_MEMBER(wxRAISED_BORDER
)
51 wxFLAGS_MEMBER(wxSTATIC_BORDER
)
52 wxFLAGS_MEMBER(wxBORDER
)
54 // standard window styles
55 wxFLAGS_MEMBER(wxTAB_TRAVERSAL
)
56 wxFLAGS_MEMBER(wxCLIP_CHILDREN
)
57 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW
)
58 wxFLAGS_MEMBER(wxWANTS_CHARS
)
59 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE
)
60 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB
)
61 wxFLAGS_MEMBER(wxVSCROLL
)
62 wxFLAGS_MEMBER(wxHSCROLL
)
64 wxEND_FLAGS( wxStaticBitmapStyle
)
66 wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticBitmap
, wxControl
, "wx/statbmp.h")
68 wxBEGIN_PROPERTIES_TABLE(wxStaticBitmap
)
69 wxPROPERTY_FLAGS( WindowStyle
, wxStaticBitmapStyle
, long, \
70 SetWindowStyleFlag
, GetWindowStyleFlag
, \
71 wxEMPTY_PARAMETER_VALUE
, 0 /*flags*/, wxT("Helpstring"), \
72 wxT("group")) // style
73 wxEND_PROPERTIES_TABLE()
75 wxEMPTY_HANDLERS_TABLE(wxStaticBitmap
)
77 wxCONSTRUCTOR_5( wxStaticBitmap
, wxWindow
*, Parent
, wxWindowID
, Id
, \
78 wxBitmap
, Bitmap
, wxPoint
, Position
, wxSize
, Size
)
85 #endif // wxUSE_STATBMP