Menu

#598 Allow drop files onto doc switcher and other side panels

Next_major_release
closed
nobody
None
7
2015-03-12
2014-09-07
Michael
No

Currently you can only drop files onto the edit windows. I would like to be able to drop files onto the doc switcher (or other side panels) and have them open in the main edit window.

In the Notepad_plus::dropFiles function if the drop point is not in one of the 2 edit windows, it passes the drop message to the window returned by RealChildWindowFromPoint. This might be intended to allow other plug-ins to handle drop messages, but from testing droping onto the Doc Switcher, the window returned by RealChildWindowFromPoint is not the Doc Switcher but a tab control that the doc switcher is probably hosted in and is a child of. So plugins probably wouldn't get the message anyway.

I think it would be more useful to change the function to check if the window is the sub edit window and if not then drop it into the main edit window.

1 Attachments

Discussion

  • Don HO

    Don HO - 2015-02-13
    • status: open --> accepted
    • Priority: 5 --> 7
     
  • Don HO

    Don HO - 2015-02-13

    Hi Michael,

    This patch will be integrated in the next release.
    Thank you for your contribution.

    Don

     
  • Don HO

    Don HO - 2015-03-12
    • Status: accepted --> closed
     
MongoDB Logo MongoDB