From bcfad5b5d0700d058a82d6089caf0436744fa444 Mon Sep 17 00:00:00 2001 From: Andreas Falkenhahn Date: Thu, 31 Aug 2017 00:26:57 +0200 Subject: [PATCH] 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. --- src/common/tbarbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index a5b9192dac..5272c298f3 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -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;