diff options
author | Kevin Barnes <krbarnes> | 2007-05-16 16:26:10 +0000 |
---|---|---|
committer | Kevin Barnes <krbarnes> | 2007-05-16 16:26:10 +0000 |
commit | 48f9e76f06f512565a85c2f58760c86eaaf030a0 (patch) | |
tree | 162628297499ed67644dfcc11c46d9128012d2ec | |
parent | 4f1247a1e80ad6c4c99102206cf68f788489e321 (diff) | |
download | eclipse.platform.swt-48f9e76f06f512565a85c2f58760c86eaaf030a0.tar.gz eclipse.platform.swt-48f9e76f06f512565a85c2f58760c86eaaf030a0.tar.xz eclipse.platform.swt-48f9e76f06f512565a85c2f58760c86eaaf030a0.zip |
fixed clipping
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Composite.java | 4 | ||||
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Control.java | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Composite.java index 836c7fba92..2f381501e8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Composite.java @@ -890,6 +890,10 @@ int setBounds (int x, int y, int width, int height, int flags) { return result; } +void setClipping () { + OS.UIElement_ClipToBounds (topHandle (), true); +} + public boolean setFocus () { checkWidget(); Control [] children = _getChildren (); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Control.java index 218c3b25df..f1d0c6c498 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Control.java @@ -599,7 +599,7 @@ void createWidget () { } void setClipping () { - OS.UIElement_ClipToBounds (topHandle (), true); + //accept default clipping } int defaultBackground () { |