| 646 | } |
| 647 | |
| 648 | void AButton::Disable() |
| 649 | { |
| 650 | // Bug 1565: Tooltips not showing on disabled buttons. |
| 651 | // The fix is to NOT tell windows that the button is disabled. |
| 652 | // The button's appearance will still change to show it is disabled |
| 653 | // since we control that rather than windows. |
| 654 | #ifndef __WXMSW__ |
| 655 | wxWindow::Enable(false); |
| 656 | #endif |
| 657 | if (GetCapture()==this) |
| 658 | ReleaseMouse(); |
| 659 | if ( mEnabled ) { |
| 660 | mEnabled = false; |
| 661 | Refresh(false); |
| 662 | } |
| 663 | } |
| 664 | |
| 665 | void AButton::PushDown() |
| 666 | { |
no outgoing calls
no test coverage detected