Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich2009-02-20 22:44:40 +0000
committerFelipe Heidrich2009-02-20 22:44:40 +0000
commit70afda11fb429b41bba77be8bdaffcd3493c9407 (patch)
treec27fbb972f17e3c66474bfeee056107fcc4504be
parentd52e16efc626921ada762a33696dec6b9b1ca0ab (diff)
downloadeclipse.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-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java18
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);
}
}
}

Back to the top