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:
committed by
Vadim Zeitlin
parent
4a71ba820f
commit
bcfad5b5d0
@@ -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;
|
||||
|
Reference in New Issue
Block a user