Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2015-04-16 08:39:06 +0000
committerNiraj Modi2015-04-16 08:39:06 +0000
commit79d9fccb3fbc773688882f3e7477eaa419d13abb (patch)
treed392339454f4ebd2b87713cd7354514bb9e0a8ba /examples
parent272a884cbfaf37ca080cb3f80dc6205e135d72be (diff)
downloadeclipse.platform.swt-79d9fccb3fbc773688882f3e7477eaa419d13abb.tar.gz
eclipse.platform.swt-79d9fccb3fbc773688882f3e7477eaa419d13abb.tar.xz
eclipse.platform.swt-79d9fccb3fbc773688882f3e7477eaa419d13abb.zip
Bug 463127 - [Win32][GTK] Transparent background not honored on
Composite with Scrollbars - GTK patch Change-Id: I9bd2a575c1b799232c89f292ce3179bc00141b27 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet365.java32
1 files changed, 16 insertions, 16 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet365.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet365.java
index b9be917c52..99ce79590c 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet365.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet365.java
@@ -28,14 +28,14 @@ public class Snippet365 {
static Image newImage;
// Containers
- static Group containerGroup;
+ static Composite containerGroup;
static Canvas canvas;
static Composite composite;
static Group group;
static Sash sash;
// Native
- static Group nativeGroup;
+ static Composite nativeGroup;
static Button buttonCheckBox;
static ToolBar toolBar;
static CoolBar coolBar;
@@ -47,7 +47,7 @@ public class Snippet365 {
static Button push;
// Custom
- static Group customGroup;
+ static Composite customGroup;
static CLabel cLabel;
static StyledText styledText;
static SashForm sashForm;
@@ -55,14 +55,14 @@ public class Snippet365 {
static CTabFolder gradientCTab;
// Item
- static Group itemGroup;
+ static Composite itemGroup;
static TabFolder tabFolder;
static Table table;
static Tree tree;
static ExpandBar expandBar;
// As Designed
- static Group defaultBackgroundGroup;
+ static Composite defaultBackgroundGroup;
static Text text;
static Combo combo;
static ProgressBar progressBar;
@@ -219,41 +219,41 @@ public class Snippet365 {
});
// ContainerGroup
- containerGroup = new Group(shell, SWT.NONE);
+ containerGroup = new Composite(shell, SWT.NONE);
containerGroup.setBackground(display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
- containerGroup.setText("CONTAINER");
+ containerGroup.setToolTipText("CONTAINER");
layout = new RowLayout();
layout.spacing = 20;
containerGroup.setLayout(layout);
// Native
- nativeGroup = new Group(shell, SWT.NONE);
+ nativeGroup = new Composite(shell, SWT.NONE);
nativeGroup.setBackground(display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
- nativeGroup.setText("NATIVE");
+ nativeGroup.setToolTipText("NATIVE");
layout = new RowLayout();
layout.spacing = 20;
nativeGroup.setLayout(layout);
// Custom
- customGroup = new Group(shell, SWT.NONE);
+ customGroup = new Composite(shell, SWT.NONE);
customGroup.setBackground(display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
- customGroup.setText("CUSTOM");
+ customGroup.setToolTipText("CUSTOM");
layout = new RowLayout();
layout.spacing = 20;
customGroup.setLayout(layout);
// AsDesigned
- defaultBackgroundGroup = new Group(shell, SWT.NONE);
+ defaultBackgroundGroup = new Composite(shell, SWT.NONE);
defaultBackgroundGroup.setBackground(display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
- defaultBackgroundGroup.setText("Default Background");
+ defaultBackgroundGroup.setToolTipText("Default Background");
layout = new RowLayout();
layout.spacing = 20;
defaultBackgroundGroup.setLayout(layout);
// ItemGroup
- itemGroup = new Group(shell, SWT.NONE);
+ itemGroup = new Composite(shell, SWT.NONE);
itemGroup.setBackground(display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
- itemGroup.setText("ITEM");
+ itemGroup.setToolTipText("ITEM");
layout = new RowLayout();
layout.spacing = 20;
itemGroup.setLayout(layout);
@@ -325,7 +325,7 @@ public class Snippet365 {
});
// Composite
- composite = new Composite(containerGroup, SWT.BORDER);
+ composite = new Composite(containerGroup, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
composite.setToolTipText("Composite");
// TabFolder

Back to the top