X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33d0b396b23cc198d6966d2ae4bd03762821e56c..470b7da353545369db1a4ecdbc673a496d9980c8:/user/wxFile/filectrl.cpp diff --git a/user/wxFile/filectrl.cpp b/user/wxFile/filectrl.cpp index 3dcbf7050d..d84f468360 100644 --- a/user/wxFile/filectrl.cpp +++ b/user/wxFile/filectrl.cpp @@ -206,7 +206,7 @@ void wxFileData::MakeItem( wxListItem &item ) IMPLEMENT_DYNAMIC_CLASS(wxFileCtrl,wxListCtrl); BEGIN_EVENT_TABLE(wxFileCtrl,wxListCtrl) - EVT_SET_FOCUS (wxFileCtrl::OnSetFocus) + EVT_SET_FOCUS (wxFileCtrl::OnSetFocus) END_EVENT_TABLE() wxFileCtrl *wxFileCtrl::m_lastFocus = NULL; @@ -222,8 +222,8 @@ wxFileCtrl::wxFileCtrl( wxWindow *win, const wxWindowID id, const wxString &dirN const long style, const wxString &name ) : wxListCtrl( win, id, pos, size, style, name ) { - SetItemSpacing( 20 ); - wxImageList *imageList = new wxImageList( 18, 18 ); + SetItemSpacing( 40 ); + wxImageList *imageList = new wxImageList( 30, 30 ); imageList->Add( wxBitmap( folder_xpm ) ); imageList->Add( wxBitmap( txt_xpm ) ); imageList->Add( wxBitmap( list_xpm ) ); @@ -236,8 +236,12 @@ wxFileCtrl::wxFileCtrl( wxWindow *win, const wxWindowID id, const wxString &dirN Update(); m_lastFocus = this; - - SetDropTarget( new wxTextDropTarget() ); + + m_dragStartX = 0; + m_dragStartY = 0; + m_dragCount = 0; + + SetDropTarget( new wxFileDropTarget() ); }; void wxFileCtrl::ChangeToListMode() @@ -538,4 +542,3 @@ void wxFileCtrl::OnSetFocus( wxFocusEvent &event ) event.Skip(); }; -