]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/palmos/bmpbuttn.cpp
Italian translation corrections from Roberto Boriotti.
[wxWidgets.git] / src / palmos / bmpbuttn.cpp
... / ...
CommitLineData
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
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
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
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