removed (well, kept empty shell to avoid breaking existing code) InheritAttributes()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -74,8 +74,9 @@ protected:
|
|||||||
const wxValidator& validator,
|
const wxValidator& validator,
|
||||||
const wxString& name);
|
const wxString& name);
|
||||||
|
|
||||||
// inherit colour and font settings from the parent window
|
// this function is obsolete, it is only kept for backwards compatibility,
|
||||||
void InheritAttributes();
|
// do *not* use it
|
||||||
|
void InheritAttributes() { }
|
||||||
|
|
||||||
// initialize the common fields of wxCommandEvent
|
// initialize the common fields of wxCommandEvent
|
||||||
void InitCommandEvent(wxCommandEvent& event) const;
|
void InitCommandEvent(wxCommandEvent& event) const;
|
||||||
|
@@ -89,20 +89,6 @@ bool wxControlBase::CreateControl(wxWindowBase *parent,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// inherit colour and font settings from the parent window
|
|
||||||
void wxControlBase::InheritAttributes()
|
|
||||||
{
|
|
||||||
if ( ShouldInheritColours() )
|
|
||||||
{
|
|
||||||
wxWindow *parent = GetParent();
|
|
||||||
|
|
||||||
wxCHECK_RET( parent, _T("a control without parent?") );
|
|
||||||
|
|
||||||
SetBackgroundColour(parent->GetBackgroundColour());
|
|
||||||
SetForegroundColour(parent->GetForegroundColour());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxControlBase::Command(wxCommandEvent& event)
|
void wxControlBase::Command(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
(void)GetEventHandler()->ProcessEvent(event);
|
(void)GetEventHandler()->ProcessEvent(event);
|
||||||
|
Reference in New Issue
Block a user