mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-11 09:03:36 +02:00
Bug 1565 - Windows: Toolbars don't show tooltips when button is disabled
This commit is contained in:
@@ -536,7 +536,13 @@ void AButton::Enable()
|
||||
|
||||
void AButton::Disable()
|
||||
{
|
||||
// Bug 1565: Tooltips not showing on disabled buttons.
|
||||
// The fix is to NOT tell windows that the button is disabled.
|
||||
// The button's appearance will still change to show it is disabled
|
||||
// since we control that rather than windows.
|
||||
#ifndef __WXMSW__
|
||||
wxWindow::Enable(false);
|
||||
#endif
|
||||
mEnabled = false;
|
||||
if (GetCapture()==this)
|
||||
ReleaseMouse();
|
||||
|
Reference in New Issue
Block a user