From: Robin Dunn Date: Thu, 10 Mar 2005 23:54:14 +0000 (+0000) Subject: add default action methods X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/303f572ea95a88622fd93b33008de75f756ff068?ds=sidebyside add default action methods git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_dnd.i b/wxPython/src/_dnd.i index 581ea93043..bfe497b58e 100644 --- a/wxPython/src/_dnd.i +++ b/wxPython/src/_dnd.i @@ -144,6 +144,15 @@ public: // with the data from the drop source if it returns True bool GetData(); + // sets the default action for drag and drop: + // use wxDragMove or wxDragCopy to set deafult action to move or copy + // and use wxDragNone (default) to set default action specified by + // initialization of draging (see wxDropSourceBase::DoDragDrop()) + void SetDefaultAction(wxDragResult action); + + // returns default action for drag and drop or + // wxDragNone if this not specified + wxDragResult GetDefaultAction(); };