drag&drop from outside dows not mark target

Q & A for the old 2X Explorer file manager. For other topics, please use the corresponding forum.

Moderators: fgagnon, nikos, Site Mods

pila
Bronze Member
Bronze Member
Posts: 70
Joined: 2003 Jun 18, 08:50
Location: Croatia

drag&drop from outside dows not mark target

Post by pila »

When i try to drag&drop something from e.g. desktop to x2 folder pane, it does not show in bold the target active folder.

It reacts well otherwise, it will open subfolders, but wil not show what is current target.
User avatar
nikos
Site Admin
Site Admin
Posts: 15802
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

surely the target folder is hilighted though (?)
the bold item doesn't really mean much other than the last folder that had the focus
pila
Bronze Member
Bronze Member
Posts: 70
Joined: 2003 Jun 18, 08:50
Location: Croatia

Post by pila »

No, nothing is highlited. That is my problem. Only the last used folder is bolded.
narayan
Platinum Member
Platinum Member
Posts: 1430
Joined: 2002 Jun 04, 07:01

Post by narayan »

Let's compare the experiences:

1. As soon as I make a new selection, the previously visited folder loses active focus (blue highlighting): only a dotted line is shown around it (you can turn that into proper "focus" by pressing the SpaceBar.)

2. I select some files/folders and then drag them to a folder which is in the opposite pane (or sometimes even the same pane). When I hover the mouse pointer over the target folder, it always highlights it (makes it dark blue).

This happens even in case of the target being a zip folder.

I use details view with single-click activation; with Win NT4/2k.

Essentally nothing new in what is described here, but what's the difference in your settings/observations/OS?
User avatar
nikos
Site Admin
Site Admin
Posts: 15802
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

perhaps we have a terminology issue here
what i (&narayan) mean by "hilighted" is a change in the background color that indicates either selected or drop target states.

pila, what do you mean by "bolding"? Are you referring to the single item in the tree that is printed in bold font? Then see my earlier response

if you don't get targets hilighted (in my use of the word) then the objects you are trying to drag will not be accepted by the item/folder under the mouse cursor


P.S. Another thing you can try is watch the dbmon output while you are dragging over the various folders. If the folder is receptive it will say so in the debug output window
narayan
Platinum Member
Platinum Member
Posts: 1430
Joined: 2002 Jun 04, 07:01

Post by narayan »

it will open subfolders, but will not show what is current target.
Probably you are trying to drop your selection in the tree? Because a drag-n-drop won't open subfolders when you hover mouse in folfder pane; but the tree would.

But even there the x2 shows the target folder in dark blue.

BTW Nikos, I found another problem while trying pila's problem: if you hover the selection over a removable drive (in the tree), x2 pops up an error message "Drive is not accessible: the device is not ready" and freezes. The mouse pointerturns into hourglass.

I have to terminate x2 using Windows Task Manager.

Here's the log:
156: In CShellDropTarget::DragEnter(7), examining source data object
156: Dumping data object 0x00149118...
156: {Shell IDList Array, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
156: {InShellDragLoop, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
156: {CF_HDROP, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
156: {FileName, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
156: {FileNameW, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
156: Preferred DropEffect = 4294967295
156: Performed DropEffect = 4294967295
156: Logical Performed DropEffect = 4294967295
156: InShellDragLoop = 1
156: VIEW_1c02f4: drop target is the folder itself
156: In CShellDropTarget::DragLeave()
156: In CShellDropTarget::DragEnter(7), examining source data object
156: Dumping data object 0x00149118...
156: {Shell IDList Array, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
156: {InShellDragLoop, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
156: {CF_HDROP, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
156: {FileName, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
156: {FileNameW, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
156: Preferred DropEffect = 4294967295
156: Performed DropEffect = 4294967295
156: Logical Performed DropEffect = 4294967295
156: InShellDragLoop = 1
156: TREE: drop target = 'D:\temp'
156: TREE: drop target = 'D:\Temp for zip'
156: TREE: drop target = 'E:\'
156: TREE: drop target = 'F:\'
156: >>>>> TREE: expanding node...
156: *** TID=c8, Generating folder instance 'My Computer\F:\'
156: Filesystem path = F:\
156: Shell attributes: (0x70000000) FILESYSANCESTOR | FILESYSTEM |
156: Assigned folder type: FITYPE_NORMAL [forced]
156: Folder CLSID: {F3364BA0-65B9-11CE-A9BA-00AA004AE837}
User avatar
nikos
Site Admin
Site Admin
Posts: 15802
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

i tried hovering over an empty floppy label and sure enough the error box came up, but after hitting ESC it went away and the drag was aborted. So no freezing for me.

BTW pila, these are the lines in the dbmon output you should be looking for when targeting folders in the tree (i was talking about them earlier):
156: InShellDragLoop = 1
156: TREE: drop target = 'D:\temp'
156: TREE: drop target = 'D:\Temp for zip'
156: TREE: drop target = 'E:\'
156: TREE: drop target = 'F:\'
156: >>>>> TREE: expanding node...
User avatar
vserghi
Silver Member
Silver Member
Posts: 309
Joined: 2002 Mar 19, 08:54
Location: UK

Post by vserghi »

Nikos, I have tried what narayan has quoted and hovered a file over the a:\ drive and got x2 to freeze. Here is the debug report. It will not let me press Escape to clear the error, and I have to go through the task manager to shut down x2.

58: ------------------------------------------------------------------------
58: 'C:\2xExplorer\x2alpha\xplorer2.exe' build 0.0.0.42 (Ansi) beginning execution
58: English translation
58: Windows version: 4.0, build 1381
58: Platform: VER_PLATFORM_WIN32_NT
58: Info: Service Pack 6
58: Shell32.dll version: 4.72.3612.1700
58: COMCTL32.DLL version: 5.81.4807.2300
58: COMDLG32.DLL version: 4.0.1381.319
58: SHDOCVW.DLL version: 5.50.4916.1800
58: zipfldr.dll version: <unknown>
58: Build flags: WINVER=400, _WIN32_IE=500, _RICHEDIT_VER=100, _WIN32_WINNT=501, _WIN32_WINDOWS=0
58: MB code page: 0, locale C
58: ------------------------------------------------------------------------
58: SYSTEM INFORMATION: page=4096, granularity=65536, CPUs=1
58: Q235630 patch is ON
58: *** TID=0, Generating folder instance 'My Computer\C:\'
58: Filesystem path = C:\
58: Shell attributes: (0x70000000) FILESYSANCESTOR | FILESYSTEM |
58: Assigned folder type: FITYPE_NORMAL [forced]
58: Folder CLSID: {F3364BA0-65B9-11CE-A9BA-00AA004AE837}
58: Typical FS folder clsid: {F3364BA0-65B9-11CE-A9BA-00AA004AE837}
58: Grep IPC port is NEW
58: arg[0] = 'C:\2xExplorer\x2alpha\xplorer2.exe'
58: List view b4024a created, sty=56100349, ex=4401, depth=16
58: List view 230178 created, sty=56100349, ex=4401, depth=16
58: TREE::OnShowWindow(1, 0)
58: [TREE]-SPY(0000002d): Installed on ''
58: ThreadID=2d: Adding frame 0x001d01da 'ATL:ExplorerFrame' [xplorer¦]
58: >>> ThreadID=2d: Beginning execution
58: Santa's little helper starting, ThreadID=b8
58: *** TID=2d, Generating folder instance 'My Computer\C:\2xExplorer'
58: Filesystem path = C:\2xExplorer
58: Shell attributes: (0x60000177) FILESYSTEM |
58: Assigned folder type: FITYPE_FILESYSTEM [deciphered]
58: Folder CLSID: {F3364BA0-65B9-11CE-A9BA-00AA004AE837}
58: Enumerated 18 objects in the folder, code=1
58: Caching the column info of this shellfolder
58: Delay-creating column handler...IShellDetails; Columns = 5 (cached)
58: UWM_VIEWDELAYSORT got rid of 0 redundant messages
58: SPY(0000002e): Installed on 'My Computer\C:\2xExplorer'
58: *** TID=2d, Generating folder instance 'My Computer\C:\2xExplorer'
58: Filesystem path = C:\2xExplorer
58: Shell attributes: (0x60000177) FILESYSTEM |
58: Assigned folder type: FITYPE_FILESYSTEM [deciphered]
58: Folder CLSID: {F3364BA0-65B9-11CE-A9BA-00AA004AE837}
58: Enumerated 18 objects in the folder, code=1
58: Delay-creating column handler...IShellDetails; Columns = 5 (cached)
58: UWM_VIEWDELAYSORT got rid of 0 redundant messages
58: SPY(0000002f): Installed on 'My Computer\C:\2xExplorer'
58: >>>>> TREE: expanding node...
58: *** TID=2d, Generating folder instance ''
58: Filesystem path = C:\WINNT\Profiles\vserghi\Desktop
58: Shell attributes: (0x60000177) FILESYSTEM |
58: Assigned folder type: FITYPE_NORMAL [forced]
58: MINI-ASSERT: said folder don't derives from IPersist
58: Folder CLSID: {unknown}
58: Enumerated 6 objects in the folder, code=1
58: <<<<< TREE: node expanded (ok)
58: >>>>> TREE: expanding node...
58: *** TID=2d, Generating folder instance 'My Computer'
58: Filesystem path =
58: Shell attributes: (0x30000000) FILESYSANCESTOR |
58: Assigned folder type: FITYPE_NORMAL [forced]
58: Folder CLSID: {20D04FE0-3AEA-1069-A2D8-08002B30309D}
58: Enumerated 12 objects in the folder, code=1
58: <<<<< TREE: node expanded (ok)
58: @@@ DragDropHelper cannot be created, error 0x80040154
58: In CShellDropTarget::DragEnter(7), examining source data object
58: Dumping data object 0x0014B318...
58: {Shell IDList Array, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
58: {InShellDragLoop, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
58: {CF_HDROP, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
58: {FileName, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
58: {FileNameW, p, DVASPECT_CONTENT, -1, TYMED_HGLOBAL | }
58: Preferred DropEffect = 4294967295
58: Performed DropEffect = 4294967295
58: Logical Performed DropEffect = 4294967295
58: InShellDragLoop = 1
58: TREE: drop target = 'X:\'
58: TREE: drop target = 'W:\'
58: TREE: drop target = 'F:\'
58: TREE: drop target = 'D:\'
58: TREE: drop target = 'C:\'
58: TREE: drop target = 'A:\'
58: >>>>> TREE: expanding node...
58: *** TID=2d, Generating folder instance 'My Computer\A:\'
58: Filesystem path = A:\
58: Shell attributes: (0x70000000) FILESYSANCESTOR | FILESYSTEM |
58: Assigned folder type: FITYPE_NORMAL [forced]
58: Folder CLSID: {F3364BA0-65B9-11CE-A9BA-00AA004AE837}
Vas
User avatar
nikos
Site Admin
Site Admin
Posts: 15802
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

serves you right for using a backwards OS like NT4 :)
i think narayan is using the same, here's the common clue
i tried on w2000

what if you use the keyboard (arrows+enter key) to dismiss the error dialog without releasing the mouse? It's a bit of hand-juggling but I'm just curious!

anyway i think i know how to stop these dialogs popping up, will do for the next build
User avatar
vserghi
Silver Member
Silver Member
Posts: 309
Joined: 2002 Mar 19, 08:54
Location: UK

Post by vserghi »

Hey don't blame me about the OS, blame my company. As it happens I was one of the last to be given a PC with WinNT. Were all gradually moving over to Win2k. Anyway isn't Win2K/WinXP based on the NT kernel? So does that make Win2k backward also? :)

Your method works fine. I can cancel the request and x2 continues as normal.
Vas
User avatar
nikos
Site Admin
Site Admin
Posts: 15802
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

after a little bit of struggle i can report that the issue is fixed even for NT4!
now i'm going back to the find command internals
pila
Bronze Member
Bronze Member
Posts: 70
Joined: 2003 Jun 18, 08:50
Location: Croatia

Post by pila »

1. I open x2. Active folder is in blue square and bold
2. I drag an icon from the desktop over the x2 folders pane. BLue square dissapears from the active folder in the folders pane, it remains only Bold.
3. Moving dragged icon over the folders at the fodlers pane, I have no indication where it will be moved if I drop it.

I use Win2k and x2 v42
narayan
Platinum Member
Platinum Member
Posts: 1430
Joined: 2002 Jun 04, 07:01

Post by narayan »

There are two differences from what you describe:

1. When I make a selection, blue highlight goes from the previously visited folder (this part is same as what you observed). But the difference is that there is no Bolding. In fact, I can't see any "bolding" in frolder panes at all. (I can see it in tree, but the bold node is NOT the current node in the active pane. Is this a bug??)

I may not be able to see bold letters because of my selection of small fonts- I don't know.

2. When I move the selection to any destination folder (including zips), the corresponding folder gets blue highlight (as Nikos and I described earlier).

In my case, x2 behaves identically in Win NT4 and 2k.
User avatar
nikos
Site Admin
Site Admin
Posts: 15802
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

pila, please see the dbmon output while you are dragging over the tree as explained further up. Do you see any messages indicating that the tree is reacting either negative or positive?

another thing you can try: does this happen no matter what you drag or only for some items?

(i take it that the hilight problem doesn't occur when you drag items from within x2 and not from the desktop ?)
User avatar
vserghi
Silver Member
Silver Member
Posts: 309
Joined: 2002 Mar 19, 08:54
Location: UK

Post by vserghi »

Could he be describing the fact that the tree does not follow the active pane. If I change folders within a pane, the tree will remain on its last active drive. If Alt+T is pressed the tree will highlight and make bold the curent folder in the active pane.

If he does indeed drag a file from the desktop (or folder) to a folder in the tree, the folder in which the file was copied is not highlighted. If a mistake was made, such as a slip of the finger on the mouse, then the location of the file is lost unless a search is performed.

Am I correct in this pila?
Vas
Post Reply