diff options
author | Felipe Heidrich | 2009-02-20 22:44:40 +0000 |
---|---|---|
committer | Felipe Heidrich | 2009-02-20 22:44:40 +0000 |
commit | 70afda11fb429b41bba77be8bdaffcd3493c9407 (patch) | |
tree | c27fbb972f17e3c66474bfeee056107fcc4504be | |
parent | d52e16efc626921ada762a33696dec6b9b1ca0ab (diff) | |
download | eclipse.platform.swt-70afda11fb429b41bba77be8bdaffcd3493c9407.tar.gz eclipse.platform.swt-70afda11fb429b41bba77be8bdaffcd3493c9407.tar.xz eclipse.platform.swt-70afda11fb429b41bba77be8bdaffcd3493c9407.zip |
Bug 265668: Text#setMessage(..) should force redraw
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java | 18 |
1 files changed, 11 insertions, 7 deletions
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 10f1600799..a6ab085820 100755 --- 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 @@ -1713,13 +1713,17 @@ public void setMessage (String message) { if (message == null) error (SWT.ERROR_NULL_ARGUMENT); this.message = message; if ((style & SWT.SEARCH) != 0) { - if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0)) { - int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); - if ((bits & OS.ES_MULTILINE) == 0) { - int length = message.length (); - char [] chars = new char [length + 1]; - message.getChars(0, length, chars, 0); - OS.SendMessage (handle, OS.EM_SETCUEBANNER, 0, chars); + if (!OS.IsWinCE) { + if (OS.WIN32_VERSION >= OS.VERSION (6, 0)) { + int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); + if ((bits & OS.ES_MULTILINE) == 0) { + int length = message.length (); + char [] chars = new char [length + 1]; + message.getChars(0, length, chars, 0); + OS.SendMessage (handle, OS.EM_SETCUEBANNER, 0, chars); + } + } else { + OS.InvalidateRect (handle, null, true); } } } |