applying patch, fixes #10524
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
bb2e05cf28
commit
c3e433b159
@ -165,6 +165,21 @@
|
||||
impl = item;
|
||||
}
|
||||
|
||||
- (void) setEnabled:(BOOL) flag
|
||||
{
|
||||
[super setEnabled: flag];
|
||||
|
||||
if (![self drawsBackground]) {
|
||||
// Static text is drawn incorrectly when disabled.
|
||||
// For an explanation, see
|
||||
// http://www.cocoabuilder.com/archive/message/cocoa/2006/7/21/168028
|
||||
if (flag) {
|
||||
[self setTextColor: [NSColor controlTextColor]];
|
||||
} else {
|
||||
[self setTextColor: [NSColor secondarySelectedControlColor]];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)controlTextDidChange:(NSNotification *)aNotification
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user