diff options
author | Felipe Heidrich <fheidric> | 2008-04-29 15:49:15 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2008-04-29 15:49:15 +0000 |
commit | 98a4ef6a54b4148606d0ae44186fdde963260f6e (patch) | |
tree | 842afef678bf3dd6998213881d1b549ebbd28afa | |
parent | 542d9c64bac41689daf916d993755faffae0de13 (diff) | |
download | eclipse.platform.swt-98a4ef6a54b4148606d0ae44186fdde963260f6e.tar.gz eclipse.platform.swt-98a4ef6a54b4148606d0ae44186fdde963260f6e.tar.xz eclipse.platform.swt-98a4ef6a54b4148606d0ae44186fdde963260f6e.zip |
disable drag images in table and tree for custom draw (w2k)
2 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TableDragSourceEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TableDragSourceEffect.java index 8c9a5f8044..00699ac3d4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TableDragSourceEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TableDragSourceEffect.java @@ -145,6 +145,8 @@ public class TableDragSourceEffect extends DragSourceEffect { return null; } Table table = (Table) control; + //TEMPORARY CODE + if (table.isListening (SWT.EraseItem) || table.isListening (SWT.PaintItem)) return null; TableItem[] selection = table.getSelection(); if (selection.length == 0) return null; int /*long*/ tableImageList = OS.SendMessage (table.handle, OS.LVM_GETIMAGELIST, OS.LVSIL_SMALL, 0); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TreeDragSourceEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TreeDragSourceEffect.java index 236e25b3e1..6d15887034 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TreeDragSourceEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TreeDragSourceEffect.java @@ -134,6 +134,8 @@ public class TreeDragSourceEffect extends DragSourceEffect { } Tree tree = (Tree) control; + //TEMPORARY CODE + if (tree.isListening (SWT.EraseItem) || tree.isListening (SWT.PaintItem)) return null; TreeItem[] selection = tree.getSelection(); if (selection.length == 0) return null; int /*long*/ treeImageList = OS.SendMessage (tree.handle, OS.TVM_GETIMAGELIST, OS.TVSIL_NORMAL, 0); |