Multi-select treeview - Drag and Drop

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Allan Phillips (allan.phillips_at_adobe.com)
Date: 09/24/04


Date: Fri, 24 Sep 2004 13:39:05 -0400

I would like to add multi-select support to my tree control like the way it
is allowed for in Windows Explorer. I handle the SHIFT and CTRL select to
get multiple items selected alright.

My problem is that when I attempt the drag with a mousedown on one of the
selected items without SHIFT or CTRL pressed the selection gets changed to
be just the item the mouse is over. Only the one item gets dragged to the
new location. How can I suppress that change in selection at the start of
the drag and begin a drag with several items selected?

Thanks for any help.
   Allan.



Relevant Pages

  • Re: Google Groups filtering emails?
    ... >>> This is NOT a bug, ... >>> SHIFT or CTRL, then when you want to drag, the file you drag will ... >>> click on to start the drag will get a selection box, ... >> easiest way to do that is to click on the last first, hold SHIFT ...
    (news.software.readers)
  • Re: Using "Select multiple files or folders"
    ... It is also exactly what I copied from Vista Help. ... I check the first, hold SHIFT, press the last, then DELETE and it only deletes those two files. ... The instruction you quoted above about the SHIFT key works exactly the same way using the CTRL. ... Therefore, I think the answer is that the SHIFT operation is really doing the CTRL operation; that is, "random" selection. ...
    (microsoft.public.windows.vista.file_management)
  • Re: shortcut keys
    ... precedents of a selection, and I'd like to assign it to the shortcut ... Ctrl + Shift + J ...    For Each rngCell In Selection ...
    (microsoft.public.excel.programming)
  • Re: Macro to select all the filled cells in a worksheet?
    ... Sorry to tell you that, using Excel XP, when I get to the line half way down ... CTRL + SHIFT + End selects just those cells. ... Your selection is now A1:F1, ...
    (microsoft.public.excel)
  • Re: Concentric Circles
    ... Without more details, I would just select the elipse tool, hold down Ctrl + ... Shift and drag a circle. ...
    (microsoft.public.powerpoint)