remove wxComboBox-specific hack, override DoSetToolTip() in wxComboBox itself instead
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -807,4 +807,16 @@ void wxComboBox::OnUpdateSelectAll(wxUpdateUIEvent& event)
|
||||
event.Enable(IsEditable() && GetLastPosition() > 0);
|
||||
}
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
|
||||
void wxComboBox::DoSetToolTip(wxToolTip *tip)
|
||||
{
|
||||
wxChoice::DoSetToolTip(tip);
|
||||
|
||||
if ( tip && !HasFlag(wxCB_READONLY) )
|
||||
tip->Add(GetEditHWND());
|
||||
}
|
||||
|
||||
#endif // wxUSE_TOOLTIPS
|
||||
|
||||
#endif // wxUSE_COMBOBOX
|
||||
|
Reference in New Issue
Block a user