// License: Rocketeer license
/////////////////////////////////////////////////////////////////////////////
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
#include "wx/tglbtn.h"
#include "wx/button.h"
m_parent->DoAddChild(this);
PostCreation();
-
- SetFont(parent->GetFont());
+ InheritAttributes();
wxSize size_best(DoGetBestSize());
wxSize new_size(size);
if ((new_size.x != size.x) || (new_size.y != size.y))
SetSize(new_size.x, new_size.y);
- SetBackgroundColour(parent->GetBackgroundColour());
- SetForegroundColour(parent->GetForegroundColour());
-
Show(TRUE);
return TRUE;
gdk_window_set_cursor(win, cursor.GetCursor());
}
- UpdateWindowUI();
+ if (wxUpdateUIEvent::CanUpdate(this))
+ UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
}
// wxSize DoGetBestSize() const