Fixes for wxUSE_STATUSBAR.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -72,6 +72,7 @@ bool csEditorToolPalette::OnLeftClick(int toolIndex, bool toggled)
|
||||
|
||||
void csEditorToolPalette::OnMouseEnter(int toolIndex)
|
||||
{
|
||||
#if wxUSE_STATUSBAR
|
||||
wxString msg = wxEmptyString;
|
||||
if (toolIndex == PALETTE_ARROW)
|
||||
msg = _T("Pointer");
|
||||
@@ -82,6 +83,9 @@ void csEditorToolPalette::OnMouseEnter(int toolIndex)
|
||||
msg = symbol->GetName();
|
||||
}
|
||||
((wxFrame*) wxGetApp().GetTopWindow())->SetStatusText(msg);
|
||||
#else
|
||||
wxUnusedVar(toolIndex);
|
||||
#endif // wxUSE_STATUSBAR
|
||||
}
|
||||
|
||||
void csEditorToolPalette::SetSize(int x, int y, int width, int height, int sizeFlags)
|
||||
|
Reference in New Issue
Block a user