DoDragDrop oddity with Right Mouse Button

Hi all,
More experimentation - today with Drag & Drop.
Everything seems fine when performing this with the left mouse button, but when initiating this from WPF
with the right mouse button it appears to trigger the PreviewDrop event on the originating object.
I've tried intercepting QueryContinueDragHandler, which is fired and is having an Action set of Continue - all to no avail.
Much time with google shows no examples of people using the right mouse button with DoDragDrop, and a single query on this forum in September with someone having a similar problem.  No replies to that thread - hopeing for more luck today!
So, has anyone successfully initiated a system based Drag/Drop using the right mouse button?  In this case I'm working with a ListView, but I suspect that is fairly irrelevant.
Events occuring with Right Mouse Button depressed (and dragging a small way) are:
Call to: System.Windows.DragDrop.DoDragDrop
Callback: DropSource_ContinueDragEventHandler
Callback: DropTarget_PreviewDragEnter
Callback: DropSource_ContinueDragEventHandler
Callback: DropTarget_PreviewDrop
With the Left Mouse Button:
Call to: System.Windows.DragDrop.DoDragDrop
Callback: DropSource_ContinueDragEventHandler
Callback: DropTarget_PreviewDragEnter
Callback: DropSource_ContinueDragEventHandler
Callback: DropSource_ContinueDragEventHandler
Callback: DropSource_ContinueDragEventHandler
etc...
Anyone aware of any issues in this area?
Thanks,
Glyn
PS: The behaviour is different if dragging something from another application / desktop to a drop target, so it appears to be related to the originating side of things. ie, there is no problem when dragging an object from the desktop or similar.

Hmm - seem to have found the problem - it is related to the ContinueDragEventHandler!
Here is a suitable handler for dealing with Left & Right mouse button drags
You can activate it using:
DragDrop.AddQueryContinueDragHandler(this, QueryContinueDragHandler);
private void QueryContinueDragHandler(Object source, QueryContinueDragEventArgs e)
    e.Handled = true;       
    // Check if we need to bail
    if (e.EscapePressed)
        e.Action = DragAction.Cancel;       
        return;
    // Now, default to actually having dropped
    e.Action = DragAction.Drop;
    if ((e.KeyStates & DragDropKeyStates.LeftMouseButton) != DragDropKeyStates.None)
        // Still dragging with Left Mouse Button
        e.Action = DragAction.Continue;
    else if ((e.KeyStates & DragDropKeyStates.RightMouseButton) != DragDropKeyStates.None)
        // Still dragging with Right Mouse Button
        e.Action = DragAction.Continue;

Similar Messages

  • I can't remove Yandex Elements from the Open menu list with right mouse button and Tools menu although I removed Yandex. I think it slows down Firefox.

    I downloaded Freeyoutube downloader from internet and somehow got yandex installed in my computer with toolbars on firefox.Despite I removed Yandex from my computer Yandex elements still stays in open menu when right mouse button clicked and in the Tools menu. I tried to uninstall Firefox, remove yandex registry from windows registry and restart computer, and then reinstall firefox, Yandex elements still hangs there. Firefox is now running very slow compared to the running before Yandex.

    hello, please try all these steps:
    # [[Reset Firefox – easily fix most problems|reset firefox]] (this will keep your bookmarks and passwords)
    # afterwards go to the firefox menu [[Image:New Fx Menu]] > addons > extensions and in case there are still extensions listed there, disable them.
    # finally run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] and [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] to make sure that adware isn't present in other places of your system as well.
    [[Troubleshoot Firefox issues caused by malware]]

  • JTable selection _only_ with right mouse button

    I have a JTable and my code is responsible for selection. All selection should only be done with the right mouse button. The left on will be used for other purposes. However, I do not know how to stop selection with the left mouse button.
    Currently selecting with the right mouse button does the selection in "my way". Klicking with the left mouse button still offers selection the "default way". I want to disable this default way. How can this be done?

    First you get the ListSelectionModel of the jtable. Then use setSelectionInterval to set selection. Look at following code:
    table_list.addMouseListener(new MouseAdapter() {
    public void mousePressed(MouseEvent e) {
    showPopUp(e);
    public void mouseReleased(MouseEvent e){
    showPopUp(e);
    private void showPopUp(MouseEvent e){
    if (e.isPopupTrigger()){
    menu_point.setLocation(e.getPoint());
    ListSelectionModel lsm = table_list.getSelectionModel();
    lsm.setSelectionInterval(table_list.rowAtPoint(menu_point),table_list.rowAtPoint(menu_point));
    popup.show(e.getComponent(),e.getX(),e.getY());
    });

  • [SOLVED] Thunar 1.6 doesn't drag-and-drop with the right mouse button

    Hallo all.
    It might be something I've done (though I did delete my ~/.config/Thunar directory before upgrading), but Thunar doesn't let me drag-and-drop with the right mouse button, thus stopping me from copying something instead of moving it, etc. Has anyone else had that too?
    Last edited by GordonGR (2012-12-28 14:34:20)

    Joel wrote:
    anonymous_user wrote:Is it supposed to be with the right-mouse button? I always thought drag and drop was done with the left button?
    Could be right-hand user
    Come on! Read what GordonGR wrote!
    Microsoft Windows, Nautilus, the Haiku Tracker, and probably many other file managers have a feature where, when you right-click or middle-click and drag an icon to a new location, a pop-up menu appears and asks what you'd like to do (Move, Copy, Link). I thought I used to use this feature in Thunar too but it seems to have stopped working in recent versions. Has anyone else had any experience with it?
    EDIT: Here's random blogger talking about the feature in an older version of Thunar: http://jeromeg.blog.free.fr/index.php?p … and-tricks So that's good, I wasn't just imagining the feature.
    Last edited by drcouzelis (2012-12-12 03:45:05)

  • Open file with... photoshop CS6 by clicking right mouse button..

    Hi, I want to open a jpeg Picture with photoshop CS6 by clicking right mouse button open with....photoshop. The PS wont open the Pictures but freezes. I can only close it when using ctrl alt delete. I was asked to update the Version, which I did without success. CS also told me to reset the log file, with no success too, what else can i do to have this issue fixed?

    Hi,
    In the Finder doa Get Info ona NEF file, look for Open with..., change it to PS6, click the Apply to all box.

  • Right mouse button with the trackpad

    I read that on the 17 inch MBP there's an option to imitate the right mouse button by clicking when having two fingers on the trackpad (instead of Ctrl-click). Can anybody say whether this is something unique to 17 inch MBP hardware or whether we can also get it to work on the 15.4 inch MBP's?

    Hello,
    I asked this yesterday in another thread. Can someone
    with a new 17" please check and see what version of
    OSX you have. Is it 10.4.6? Or maybe 10.4.7 which we
    could see in an update soon.
    Apple will not have updated the OS revision number for the newer systems.
    What they do, is update the "Build" of the OS version.
    For example, when the iMac G5 came out, there was a custom "Build" version released with that machine (only on that machine).
    Then, when the second version and 3rd versions were released, they again released custom build revisions for those machines.
    These custom "builds" are essentially the latest OS available with a couple of tweaks to enable new features unique to that machine.
    So, what they would see is a different "Build" number than the build number on the 15-inch systems.
    This number can be found by clicking on "About this Mac" in the Apple Menu. Then, click once on the "Version 10.4.6" line where it is displayed in the box. The "Version 10.4.6" line will then change to a line that reads "Build XXXXX". On my Mac Mini with the retail 10.4.6 installed, it says "Build 8I127".
    Clicking on the build number will then display your computer's serial number. Clicking on the serial number will then switch back to displaying Version 10.4.6.
    This Build number will likely be different on machines released after 10.4.6 was available to reflect customizations to 10.4.6 that are unique to that machine.
    Keep in mind that the build number also changes with each update to OS 10.4.x that you install using software update. So, this build number will only be helpful if you check it before any updates are applied.

  • Using the right mouse button with JTables

    Hi Folks,
    Can someone describe how to allow the right mouse button to select rows in a JTable? Or can someone tell me how to access the code which is activated when the RMB is clicked on a JTable so I can copy it.
    Thanks.

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).
    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: command+Shift+F).<br />
    If you are in full screen mode then hover the mouse to the top to make the Navigation Toolbar and Tab bar appear.<br />
    You can click the Maximize button at the top right to leave full screen mode or right click empty space on a toolbar and use "Exit Full Screen Mode" or press F11.<br />

  • How to get a node  in a Jtree on which right mouse button is clicked

    I am dealing with a situation in which whenever tree component is clicked by right mouse button I am needed to get the tree node on which right mouse button was clicked.

    MouseEvent e = ...
    TreePath path = tree.getPathForLocation(e.getX(), e.getY());
    Object nodeClickedOn = path.getLastPathComponent();Or something along those lines.

  • When using the right mouse button in Yahoo mail inbox (Firefox 8.0.1, Win 7, Yahoo Mail Plus) the Firefox navigation window (Back, Forward etc...) is on top of the Yahoo email menu (Open, Print, Reply etc...). This happens in Firefox safe mode as well.

    This also happened in Windows XP which I was using until recently.
    The Yahoo mail menu is there but the Firefox menu is on top of it. I tried Firefox safe mode with everything disabled and the problem still happened. I tried Yahoo mail in IE 9 and the right mouse button works correctly.

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).
    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: command+Shift+F).<br />
    If you are in full screen mode then hover the mouse to the top to make the Navigation Toolbar and Tab bar appear.<br />
    You can click the Maximize button at the top right to leave full screen mode or right click empty space on a toolbar and use "Exit Full Screen Mode" or press F11.<br />

  • I can not open the bookmarks tab or use the right mouse button in firefox

    ''locking this thread as duplicate, please continue at [https://support.mozilla.org/en-US/questions/1053467 /questions/1053467]''
    I recently downloaded firefox to my new laptop. I can not open the bookmarks tab or use any of the right mouse button options.

    Do a clean reinstall and delete the Firefox program folder before (re)installing a fresh copy of the current Firefox release.
    *Download the full Firefox installer and save the file to the desktop<br>https://www.mozilla.org/en-US/firefox/all/
    If possible uninstall your current Firefox version to cleanup the Windows registry and settings in security software.
    *Do NOT remove "personal data" when you uninstall your current Firefox version, because this will remove all profile folders and you lose personal data like bookmarks and passwords including data in profiles created by other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *(32 bit Windows) "C:\Program Files\Mozilla Firefox\"
    *(64 bit Windows) "C:\Program Files (x86)\Mozilla Firefox\"
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other personal data are stored in the Firefox profile folder and won't be affected by an uninstall and (re)install, but make sure NOT to remove personal data when you uninstall Firefox as that will remove all Firefox profile folders and you lose your personal data.
    If you keep having problems then also create a new profile.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Right Mouse Button Menu Activation over JTextArea

    Hello JavaMasters !!
    I'm a little Shamy to ask you this silly question, but I don't manage to activate the right mouse button Menu over a JTextArea (to do Copy/Cut/Paste/Select All .. operations) as with a simple TextArea !!
    I hope that its just a boolean to change, and not a remake of the Menus with Panels and Images . . .
    I ve tried to Flew over Tutorials but nothing seems to be easily makabel. So if you have a solution , Easy or Hard, Please HELP ME !!
    I ll give to the winner a nice Artistic Picture of "Donna Summer" caming from my creations ! !!!
    THANKSSSSSS a lout! !

    There's a nice section in the tutorial.
    That's where I learned doing popups...
    Bringing Up a Popup Menu

  • Right mouse button

    in Firefox 3.6, clicking the right mouse button opens (link)
    a new window option .... but in firefox 4.0 ... option opens
    the flap open .. but I do not like that option .....
    how do I delete this
    option of becoming like the tab firefox 3.6??
    tks

    Hello @exforester1,
    I understand that your right-click no longer displays the context menu for you on your computer running Windows 7. I am providing you with an HP Support document: Using Microsoft System Restore (Windows 7), which will walk you through restoring your computer back to a point in time when the menu did show up properly. This should bring back the functionality that you are missing.
    Please re-post if you require additional support. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • The multi level "isolation mode" don't work after the last upgrading to Illustrator CC 18.1.0? by the right mouse button menu

    PROVA

    Yes, I know that, but I ever work with the right mouse button,
    because selecting groups and subgroups with double click make some confusion for me.
    Regards,
    Fabio
    ufficio tecnico
    grafica e prestampa
    Via Verdi, 11 - 43058 Sorbolo (PR)
    Tel. 0521.694111 - Fax 0521.694360
    E-mail: [email protected] <mailto:[email protected]>
    E-mail: [email protected] <mailto:[email protected]>
    Web: www.litoexpress.it <http://www.litoexpress.it/>
    Il giorno 28/ott/2014, alle ore 06:57, Satinder S Bains <[email protected]> ha scritto:
    The multi level "isolation mode" don't work after the last upgrading to Illustrator CC 18.1.0? by the right mouse button menu
    created by Satinder S Bains <https://forums.adobe.com/people/SatinderSBains> in Illustrator - View the full discussion <https://forums.adobe.com/message/6874053#6874053>
    You can double click on the selected object to get into the multilevel isolation mode.
    Regards,
    Satinder
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6874053#6874053
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Illustrator by email <mailto:[email protected]m> or at Adobe Community <https://forums.adobe.com/choose-container.jspa?contentType=1&containerType=14&container=33 67>
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0 <http://forums.adobe.com/thread/416458?tstart=0>.

  • Xfce4 no background and right mouse button menu

    Hello.
    Everything worked great so I decided to try Xgl. I put Shadowhand repo in my pacman.conf than I ran
    pacman -Syu
    and than
    pacman -S xgl-cvs compiz-cvs mesa-cvs cairo-cvs
    first I lost my right mouse button menu and than background. I recovered bacground by running
    xfdesktop in terminal. How do I get my right mouse button working? This is when I run startxfce4 as root. When I try as other user everything work like before.
    I tried to remove xfce4 and install again. I tried to remove .config directory from root folder and replace with one from users on the system(startxfce4 as user everything is there). Still the same black background and no menu on right mouse button.
    Thanks for help.
    Andrey

    Thanks. Worked for me also. What a great distro it is. This is like coming back to basics but everything works + great community.
    Andrey

  • Possible to make folder in right mouse button?

    I was wondering if it is possible to make a own folder link in the right mouse button. I would like to right click on a photo on my desktop and choose the folder in the pop up window where the photo then would move to. Is this possible?
    André

    AndreasvanHaren wrote:
    tried it and cannot get it to work.
    I'm pretty sure you didn't do it correctly. it works for me. did you read the installation instructions? you have to put the CM plugin into the Contextual menu folder and the preference pane into the PreferencePanes folder inside the Library in your home directory (not at the top level of the drive). then log out/in and it will work.
    And it's a demo only. Can I do this somehow with Automater?
    yes, but why bother. that CM plugin is much nicer than anything you can make with automator.

Maybe you are looking for

  • Seeburger SFTP - Message Transformation Bean Issue

    Using Seeburger SFTP adapter to read a tab delimited file. File is being successfully read; however, content conversion need to be performed to convert the file content to XML.  Thus, using Message Transformation Bean with the following module parame

  • Is there a way to import the exported products into SLD?

    All experts, Is there a way to import the exported products the .zip file, including software components into SLD? Under Software Catalog--> Products, I donu2019t see any import button! I am in XI 7.0. Thanks

  • Profict Center substitution in accounting Document of CRM billing

    Hi Experts, Currently we are using ECC6.0 and CRM 2007. When CRM billing document is released for accounting, We are required to Substitute profit center in accounting document/PCA document. Presently we tryed user exit PCACRM01 , function module EXI

  • Adobe CS2 creative suite premium with Macromedia 8

    Hi All, I know my software is old, but its what I bought in 2005 and havent been able to upgrade. Question? Its no longer supported right? I downloaded the version availabe on Adobe online like they said, and all i get is photoshop. Sigh.............

  • Method Session session.connection() is deprecated - version 1.6

    hi, making migration 1.4 to 1.6 version JDK, the method session.connection() is deprecated, by what method or feature you can run the code without deprecation a method which is used: public void saveFinding(DasFinding finding) { if (finding.getId() =