| Summary: | SWT Text control with SWT.MULTI style appears incorrectly when disabled | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Sakis Kotisis <kotisis> |
| Component: | SWT | Assignee: | Scott Kovatch <skovatch> |
| Status: | RESOLVED FIXED | QA Contact: | Silenio Quarti <Silenio_Quarti> |
| Severity: | normal | ||
| Priority: | P3 | CC: | skovatch |
| Version: | 3.6 | ||
| Target Milestone: | 3.7 M5 | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Sakis Kotisis
This is platform behavior, unfortunately. Single-line Text objects use NSTextField, which draws its contents with the disabled text color if the control is disabled. Multiline Text objects use NSTextView, which doesn't really support the notion of a 'disabled' appearance. Having said that, I do think we should try to do something here. Right now a multiline Text has no visual indication that it's disabled. We can set the text color to NSColor.disabledControlTextColor, but I'd like to find someplace in the Mac UI that disables an NSTextView. This isn't that bad, actually. For the MULTI case we can just add an alpha to the foreground color if one has been set, and use disabledControlTextColor otherwise. It looks like that's what NSTextField is doing anyway. Fixed > 20110105. |