]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/bmpbuttn.cpp
Use the data scheme to load resources in the WebKitGTK+ implementation, rather than...
[wxWidgets.git] / src / palmos / bmpbuttn.cpp
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/palmos/bmpbuttn.cpp
3// Purpose: wxBitmapButton
e2731512 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e2731512 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
ffecfa5a
JS
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
910b0053
WS
21#include "wx/bmpbuttn.h"
22
ffecfa5a 23#ifndef WX_PRECOMP
ffecfa5a
JS
24 #include "wx/log.h"
25 #include "wx/dcmemory.h"
26#endif
27
ffecfa5a
JS
28// ----------------------------------------------------------------------------
29// macros
30// ----------------------------------------------------------------------------
31
ffecfa5a
JS
32#define BUTTON_HEIGHT_FACTOR (EDIT_CONTROL_FACTOR * 1.1)
33
34bool 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
ffecfa5a
JS
46void wxBitmapButton::DrawFace( WXHDC dc, int left, int top,
47 int right, int bottom, bool sel )
48{
49}
50
51void wxBitmapButton::DrawButtonFocus( WXHDC dc, int left, int top, int right,
52 int bottom, bool WXUNUSED(sel) )
53{
54}
55
56void wxBitmapButton::DrawButtonDisable( WXHDC dc, int left, int top, int right,
57 int bottom, bool with_marg )
58{
59}
60
ffecfa5a
JS
61wxSize 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