Code clanup: removed some useless/unused member
variables/functions from wxWindow; used wxTranslateMouseEvent instead of duplicating its functionality. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -101,8 +101,6 @@ bool wxBitmapButton::Create(wxWindow *parent, wxWindowID id,
|
||||
XmNactivateCallback, (XtCallbackProc) wxButtonCallback,
|
||||
(XtPointer) this);
|
||||
|
||||
SetCanAddEventHandler(TRUE);
|
||||
|
||||
wxSize best = m_bmpNormal.Ok() ? GetBestSize() : wxSize(30, 30);
|
||||
if( size.x != -1 ) best.x = size.x;
|
||||
if( size.y != -1 ) best.y = size.y;
|
||||
@@ -266,7 +264,7 @@ void wxBitmapButton::DoSetBitmap()
|
||||
|
||||
void wxBitmapButton::ChangeBackgroundColour()
|
||||
{
|
||||
DoChangeBackgroundColour(m_mainWidget, m_backgroundColour, TRUE);
|
||||
wxDoChangeBackgroundColour(m_mainWidget, m_backgroundColour, TRUE);
|
||||
|
||||
// Must reset the bitmaps since the colours have changed.
|
||||
DoSetBitmap();
|
||||
|
Reference in New Issue
Block a user