mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-29 16:27:03 +01: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()
|
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);
|
wxWindow::Enable(false);
|
||||||
|
#endif
|
||||||
mEnabled = false;
|
mEnabled = false;
|
||||||
if (GetCapture()==this)
|
if (GetCapture()==this)
|
||||||
ReleaseMouse();
|
ReleaseMouse();
|
||||||
|
|||||||
Reference in New Issue
Block a user