Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLynn Kues2002-11-12 19:30:39 +0000
committerLynn Kues2002-11-12 19:30:39 +0000
commit0d3d53b0a0dbaa64a528930efe5b2906cbcea4ce (patch)
tree0961b15531ef53ef7db8b1d213c5f13ad88e98e1
parentcbbfa0870848a174427a603956a3a94dc5640923 (diff)
downloadeclipse.platform.swt-0d3d53b0a0dbaa64a528930efe5b2906cbcea4ce.tar.gz
eclipse.platform.swt-0d3d53b0a0dbaa64a528930efe5b2906cbcea4ce.tar.xz
eclipse.platform.swt-0d3d53b0a0dbaa64a528930efe5b2906cbcea4ce.zip
25741
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
index b860dca48f..97b1e253dd 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
@@ -1557,6 +1557,10 @@ public class StyledText extends Canvas {
*/
public StyledText(Composite parent, int style) {
super(parent, checkStyle(style | SWT.NO_REDRAW_RESIZE | SWT.NO_BACKGROUND));
+ // set the bg/fg in the OS to ensure that these are the same as StyledText, necessary
+ // for ensuring that the bg/fg the IME box uses is the same as what StyledText uses
+ super.setForeground(getForeground());
+ super.setBackground(getBackground());
Display display = getDisplay();
isBidi = StyledTextBidi.isBidiPlatform();
if ((style & SWT.READ_ONLY) != 0) {

Back to the top