Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich2007-08-24 22:58:15 +0000
committerFelipe Heidrich2007-08-24 22:58:15 +0000
commit5c92769577860a79b8581e53cf90584b8a7ec4e8 (patch)
tree4c4d8d8e9c4c096a772d58149aebeca670ce37b6
parent4810e30ca3e1729018edf0620ce78065e4c1622b (diff)
downloadeclipse.platform.swt-5c92769577860a79b8581e53cf90584b8a7ec4e8.tar.gz
eclipse.platform.swt-5c92769577860a79b8581e53cf90584b8a7ec4e8.tar.xz
eclipse.platform.swt-5c92769577860a79b8581e53cf90584b8a7ec4e8.zip
added fallback styles
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Canvas.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Canvas.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Canvas.java
index 89445a4c69..78cb550334 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Canvas.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Canvas.java
@@ -167,6 +167,19 @@ TF_DISPLAYATTRIBUTE getDisplayAttribute (short langid, int attInfo) {
/* pProfiles.Release () */
hr = OS.VtblCall (2, pProfiles [0]);
}
+ if (pda == null) {
+ pda = new TF_DISPLAYATTRIBUTE ();
+ switch (attInfo) {
+ case OS.TF_ATTR_INPUT:
+ pda.lsStyle = OS.TF_LS_SQUIGGLE;
+ break;
+ case OS.TF_ATTR_CONVERTED:
+ case OS.TF_ATTR_TARGET_CONVERTED:
+ pda.lsStyle = OS.TF_LS_SOLID;
+ pda.fBoldLine = attInfo == OS.TF_ATTR_TARGET_CONVERTED;
+ break;
+ }
+ }
return pda;
}

Back to the top