summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop
diff options
context:
space:
mode:
authorVeronika Irvine <veronika>2006-03-02 18:22:39 +0000
committerVeronika Irvine <veronika>2006-03-02 18:22:39 +0000
commitd375f5e748c4a26264157578d1a40f1fbb8edb71 (patch)
tree56374ea5d94b5e0c2bf18f0d480730ebc99b3981 /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop
parenta3f5ca78a9a757f67007e90931f528488156c2d8 (diff)
downloadeclipse.platform.swt-d375f5e748c4a26264157578d1a40f1fbb8edb71.tar.gz
eclipse.platform.swt-d375f5e748c4a26264157578d1a40f1fbb8edb71.tar.xz
eclipse.platform.swt-d375f5e748c4a26264157578d1a40f1fbb8edb71.zip
Have to hide cursor when caret is drawing or you get cheese
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/StyledTextDragAndDropEffect.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/StyledTextDragAndDropEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/StyledTextDragAndDropEffect.java
index 9e8eb51fda..f6a4bc52f0 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/StyledTextDragAndDropEffect.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/StyledTextDragAndDropEffect.java
@@ -13,6 +13,8 @@ package org.eclipse.swt.dnd;
import org.eclipse.swt.custom.*;
import org.eclipse.swt.graphics.*;
+import org.eclipse.swt.internal.win32.*;
+import org.eclipse.swt.widgets.*;
class StyledTextDragAndDropEffect extends DragAndDropEffect {
StyledText text;
@@ -28,7 +30,9 @@ void showDropTargetEffect(int effect, int x, int y) {
text.setFocus();
int offset = text.getOffsetAtLocation(pt);
if (offset != oldOffset) {
+ OS.ImageList_DragShowNolock(false);
text.setCaretOffset(offset);
+ OS.ImageList_DragShowNolock(true);
}
} catch (IllegalArgumentException ex) {
int maxOffset = text.getCharCount();
@@ -44,7 +48,9 @@ void showDropTargetEffect(int effect, int x, int y) {
offset = maxOffset;
}
if (offset != -1 && offset != oldOffset) {
+ OS.ImageList_DragShowNolock(false);
text.setCaretOffset(offset);
+ OS.ImageList_DragShowNolock(true);
}
}
}