]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/bmpbuttn.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/bmpbuttn.cpp
3 // Purpose: wxBitmapButton
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
21 #include "wx/bmpbuttn.h"
25 #include "wx/dcmemory.h"
28 // ----------------------------------------------------------------------------
30 // ----------------------------------------------------------------------------
32 #define BUTTON_HEIGHT_FACTOR (EDIT_CONTROL_FACTOR * 1.1)
34 bool wxBitmapButton::Create(wxWindow
*parent
, wxWindowID id
,
35 const wxBitmap
& bitmap
,
37 const wxSize
& size
, long style
,
38 const wxValidator
& wxVALIDATOR_PARAM(validator
),
44 #define FOCUS_MARGIN 3
46 void wxBitmapButton::DrawFace( WXHDC dc
, int left
, int top
,
47 int right
, int bottom
, bool sel
)
51 void wxBitmapButton::DrawButtonFocus( WXHDC dc
, int left
, int top
, int right
,
52 int bottom
, bool WXUNUSED(sel
) )
56 void wxBitmapButton::DrawButtonDisable( WXHDC dc
, int left
, int top
, int right
,
57 int bottom
, bool with_marg
)
61 wxSize
wxBitmapButton::DoGetBestSize() const
70 #endif // wxUSE_BMPBUTTON