]>
Commit | Line | Data |
---|---|---|
cc3977bf SC |
1 | /////////////////////////////////////////////////////////////////////////////\r |
2 | // Name: src/common/bmpbtncmn.cpp\r | |
3 | // Purpose: wxBitmapButton common code\r | |
4 | // Author: Julian Smart\r | |
5 | // Modified by:\r | |
6 | // Created: 04/01/98\r | |
7 | // RCS-ID: $Id: bmpbuttn.cpp 45338 2007-04-08 22:18:35Z VZ $\r | |
8 | // Copyright: (c) Julian Smart\r | |
9 | // Licence: wxWindows licence\r | |
10 | /////////////////////////////////////////////////////////////////////////////\r | |
11 | \r | |
12 | // For compilers that support precompilation, includes "wx.h".\r | |
13 | #include "wx/wxprec.h"\r | |
14 | \r | |
15 | #ifdef __BORLANDC__\r | |
16 | #pragma hdrstop\r | |
17 | #endif\r | |
18 | \r | |
19 | #if wxUSE_BMPBUTTON\r | |
20 | \r | |
21 | #include "wx/bmpbuttn.h"\r | |
22 | \r | |
23 | #ifndef WX_PRECOMP\r | |
24 | #include "wx/log.h"\r | |
25 | #include "wx/dcmemory.h"\r | |
26 | #include "wx/image.h"\r | |
27 | #endif\r | |
28 | \r | |
29 | // ----------------------------------------------------------------------------\r | |
30 | // XTI\r | |
31 | // ----------------------------------------------------------------------------\r | |
32 | \r | |
33 | wxDEFINE_FLAGS( wxBitmapButtonStyle )\r | |
34 | wxBEGIN_FLAGS( wxBitmapButtonStyle )\r | |
35 | // new style border flags, we put them first to\r | |
36 | // use them for streaming out\r | |
37 | wxFLAGS_MEMBER(wxBORDER_SIMPLE)\r | |
38 | wxFLAGS_MEMBER(wxBORDER_SUNKEN)\r | |
39 | wxFLAGS_MEMBER(wxBORDER_DOUBLE)\r | |
40 | wxFLAGS_MEMBER(wxBORDER_RAISED)\r | |
41 | wxFLAGS_MEMBER(wxBORDER_STATIC)\r | |
42 | wxFLAGS_MEMBER(wxBORDER_NONE)\r | |
43 | \r | |
44 | // old style border flags\r | |
45 | wxFLAGS_MEMBER(wxSIMPLE_BORDER)\r | |
46 | wxFLAGS_MEMBER(wxSUNKEN_BORDER)\r | |
47 | wxFLAGS_MEMBER(wxDOUBLE_BORDER)\r | |
48 | wxFLAGS_MEMBER(wxRAISED_BORDER)\r | |
49 | wxFLAGS_MEMBER(wxSTATIC_BORDER)\r | |
50 | wxFLAGS_MEMBER(wxBORDER)\r | |
51 | \r | |
52 | // standard window styles\r | |
53 | wxFLAGS_MEMBER(wxTAB_TRAVERSAL)\r | |
54 | wxFLAGS_MEMBER(wxCLIP_CHILDREN)\r | |
55 | wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)\r | |
56 | wxFLAGS_MEMBER(wxWANTS_CHARS)\r | |
57 | wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)\r | |
58 | wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )\r | |
59 | wxFLAGS_MEMBER(wxVSCROLL)\r | |
60 | wxFLAGS_MEMBER(wxHSCROLL)\r | |
61 | \r | |
62 | wxFLAGS_MEMBER(wxBU_AUTODRAW)\r | |
63 | wxFLAGS_MEMBER(wxBU_LEFT)\r | |
64 | wxFLAGS_MEMBER(wxBU_RIGHT)\r | |
65 | wxFLAGS_MEMBER(wxBU_TOP)\r | |
66 | wxFLAGS_MEMBER(wxBU_BOTTOM)\r | |
67 | wxEND_FLAGS( wxBitmapButtonStyle )\r | |
68 | \r | |
69 | wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxBitmapButton, wxButton, "wx/bmpbuttn.h")\r | |
70 | \r | |
71 | wxBEGIN_PROPERTIES_TABLE(wxBitmapButton)\r | |
72 | wxPROPERTY_FLAGS( WindowStyle, wxBitmapButtonStyle, long, \\r | |
73 | SetWindowStyleFlag, GetWindowStyleFlag, \\r | |
74 | wxEMPTY_PARAMETER_VALUE, 0 /*flags*/, wxT("Helpstring"), \\r | |
75 | wxT("group")) // style\r | |
76 | wxEND_PROPERTIES_TABLE()\r | |
77 | \r | |
78 | wxEMPTY_HANDLERS_TABLE(wxBitmapButton)\r | |
79 | \r | |
80 | wxCONSTRUCTOR_5( wxBitmapButton, wxWindow*, Parent, wxWindowID, Id, \\r | |
81 | wxBitmap, Bitmap, wxPoint, Position, wxSize, Size )\r | |
82 | \r | |
83 | /*\r | |
84 | TODO PROPERTIES :\r | |
85 | \r | |
86 | long "style" , wxBU_AUTODRAW\r | |
87 | bool "default" , 0\r | |
88 | bitmap "selected" ,\r | |
89 | bitmap "focus" ,\r | |
90 | bitmap "disabled" ,\r | |
91 | */\r | |
92 | \r | |
93 | #endif // wxUSE_BMPBUTTON\r |