]>
Commit | Line | Data |
---|---|---|
9b6dbb09 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: statbmp.h | |
3 | // Purpose: wxStaticBitmap class | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 17/09/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart | |
31528cd3 | 9 | // Licence: wxWindows licence |
9b6dbb09 JS |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_STATBMP_H_ | |
13 | #define _WX_STATBMP_H_ | |
14 | ||
15 | #ifdef __GNUG__ | |
16 | #pragma interface "statbmp.h" | |
17 | #endif | |
18 | ||
19 | #include "wx/control.h" | |
20 | ||
21 | WXDLLEXPORT_DATA(extern const char*) wxStaticBitmapNameStr; | |
22 | ||
bfc6fde4 | 23 | class WXDLLEXPORT wxStaticBitmap : public wxControl |
9b6dbb09 | 24 | { |
bfc6fde4 VZ |
25 | DECLARE_DYNAMIC_CLASS(wxStaticBitmap) |
26 | ||
27 | public: | |
28 | wxStaticBitmap() { } | |
29 | ~wxStaticBitmap(); | |
30 | ||
31 | wxStaticBitmap(wxWindow *parent, wxWindowID id, | |
32 | const wxBitmap& label, | |
33 | const wxPoint& pos = wxDefaultPosition, | |
34 | const wxSize& size = wxDefaultSize, | |
35 | long style = 0, | |
36 | const wxString& name = wxStaticBitmapNameStr) | |
37 | { | |
38 | Create(parent, id, label, pos, size, style, name); | |
39 | } | |
40 | ||
41 | bool Create(wxWindow *parent, wxWindowID id, | |
42 | const wxBitmap& label, | |
43 | const wxPoint& pos = wxDefaultPosition, | |
44 | const wxSize& size = wxDefaultSize, | |
45 | long style = 0, | |
46 | const wxString& name = wxStaticBitmapNameStr); | |
47 | ||
48 | virtual void SetBitmap(const wxBitmap& bitmap); | |
49 | ||
31528cd3 VZ |
50 | virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event)) |
51 | { | |
52 | return FALSE; | |
53 | } | |
bfc6fde4 VZ |
54 | |
55 | wxBitmap& GetBitmap() const { return (wxBitmap&) m_messageBitmap; } | |
56 | ||
57 | // overriden base class virtuals | |
58 | virtual bool AcceptsFocus() const { return FALSE; } | |
59 | ||
60 | // Implementation | |
61 | virtual void ChangeFont(bool keepOriginalSize = TRUE); | |
62 | virtual void ChangeBackgroundColour(); | |
63 | virtual void ChangeForegroundColour(); | |
64 | ||
65 | protected: | |
66 | wxBitmap m_messageBitmap; | |
9b6dbb09 JS |
67 | }; |
68 | ||
69 | #endif | |
70 | // _WX_STATBMP_H_ |