Show help even for toolbars which aren't direct wxFrame children

Display "long help" text associated with the toolbar items in the status
bar of the parent frame even if the toolbar is not a direct child of the
frame.

Closes #17897.
This commit is contained in:
Andreas Falkenhahn
2017-08-31 00:26:57 +02:00
committed by Vadim Zeitlin
parent 4a71ba820f
commit bcfad5b5d0

View File

@@ -674,7 +674,7 @@ void wxToolBarBase::OnMouseEnter(int toolid)
event.SetEventObject(this);
event.SetInt(toolid);
wxFrame *frame = wxDynamicCast(GetParent(), wxFrame);
wxFrame *frame = wxDynamicCast(wxGetTopLevelParent(this), wxFrame);
if ( frame )
{
wxString help;