/////////////////////////////////////////////////////////////////////////////
-// Name: bmpbuttn.cpp
+// Name: src/motif/bmpbuttn.cpp
// Purpose: wxBitmapButton
// Author: Julian Smart
// Modified by:
#define XtScreen XTSCREEN
#endif
-#include "wx/defs.h"
-
#include "wx/bmpbuttn.h"
#ifdef __VMS__
xmPushButtonWidgetClass, parentWidget,
#endif
// See comment for wxButton::SetDefault
- // XmNdefaultButtonShadowThickness, 1,
+ // XmNdefaultButtonShadowThickness, 1,
XmNrecomputeSize, False,
NULL);
m_bmpSelectedOriginal = sel;
DoSetBitmap();
-};
+}
void wxBitmapButton::SetBitmapFocus(const wxBitmap& focus)
{
m_bmpFocus = focus;
// Not used in Motif
-};
+}
void wxBitmapButton::SetBitmapDisabled(const wxBitmap& disabled)
{
m_bmpDisabledOriginal = disabled;
DoSetBitmap();
-};
+}
void wxBitmapButton::DoSetBitmap()
{
// in the current widget background colour.
if (m_bmpNormalOriginal.GetMask())
{
- int backgroundPixel;
+ WXPixel backgroundPixel;
XtVaGetValues((Widget) m_mainWidget,
XmNbackground, &backgroundPixel,
NULL);
{
if (m_bmpDisabledOriginal.GetMask())
{
- int backgroundPixel;
+ WXPixel backgroundPixel;
XtVaGetValues((Widget) m_mainWidget,
XmNbackground, &backgroundPixel,
NULL);
{
if (m_bmpSelectedOriginal.GetMask())
{
- int backgroundPixel;
+ WXPixel backgroundPixel;
XtVaGetValues((Widget) m_mainWidget,
XmNarmColor, &backgroundPixel,
NULL);
return ret;
}
-