]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/bmpbuttn.cpp
avoid GDK warning "drawable is not a pixmap or window"
[wxWidgets.git] / src / palmos / bmpbuttn.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/bmpbuttn.cpp
3 // Purpose: wxBitmapButton
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
14
15 #ifdef __BORLANDC__
16 #pragma hdrstop
17 #endif
18
19 #if wxUSE_BMPBUTTON
20
21 #include "wx/bmpbuttn.h"
22
23 #ifndef WX_PRECOMP
24 #include "wx/log.h"
25 #include "wx/dcmemory.h"
26 #endif
27
28 // ----------------------------------------------------------------------------
29 // macros
30 // ----------------------------------------------------------------------------
31
32 #define BUTTON_HEIGHT_FACTOR (EDIT_CONTROL_FACTOR * 1.1)
33
34 bool wxBitmapButton::Create(wxWindow *parent, wxWindowID id,
35 const wxBitmap& bitmap,
36 const wxPoint& pos,
37 const wxSize& size, long style,
38 const wxValidator& wxVALIDATOR_PARAM(validator),
39 const wxString& name)
40 {
41 return false;
42 }
43
44 #define FOCUS_MARGIN 3
45
46 void wxBitmapButton::DrawFace( WXHDC dc, int left, int top,
47 int right, int bottom, bool sel )
48 {
49 }
50
51 void wxBitmapButton::DrawButtonFocus( WXHDC dc, int left, int top, int right,
52 int bottom, bool WXUNUSED(sel) )
53 {
54 }
55
56 void wxBitmapButton::DrawButtonDisable( WXHDC dc, int left, int top, int right,
57 int bottom, bool with_marg )
58 {
59 }
60
61 wxSize wxBitmapButton::DoGetBestSize() const
62 {
63 wxSize best;
64 best.x = 0;
65 best.y = 0;
66
67 return best;
68 }
69
70 #endif // wxUSE_BMPBUTTON