From 3462638b4d08f5602683f1e8dd1eecfd9fd908ff Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Mon, 25 Mar 2013 12:44:15 -0400 Subject: Bug 384175 - [Win7]Text#setMessage(java.lang.String) has no effect on Text with setEditable(false) --- .../org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java index 8fe103a6aa..b17d087498 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java @@ -179,7 +179,7 @@ long /*int*/ callWindowProc (long /*int*/ hwnd, int msg, long /*int*/ wParam, lo boolean doubleBuffer = findImageControl () != null; boolean drawMessage = false; if ((style & SWT.SINGLE) != 0 && message.length () > 0) { - if (!OS.IsWinCE && OS.WIN32_VERSION < OS.VERSION (6, 0)) { + if ((!OS.IsWinCE && OS.WIN32_VERSION < OS.VERSION (6, 0)) || (style & SWT.READ_ONLY) != 0) { drawMessage = hwnd != OS.GetFocus () && OS.GetWindowTextLength (handle) == 0; } } -- cgit