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;
const long style, const wxString &name ) :
wxListCtrl( win, id, pos, size, style, name )
{
- wxImageList *imageList = new wxImageList();
+ SetItemSpacing( 40 );
+ wxImageList *imageList = new wxImageList( 30, 30 );
imageList->Add( wxBitmap( folder_xpm ) );
imageList->Add( wxBitmap( txt_xpm ) );
imageList->Add( wxBitmap( list_xpm ) );
Update();
m_lastFocus = this;
-
- SetDropTarget( new wxTextDropTarget() );
+
+ m_dragStartX = 0;
+ m_dragStartY = 0;
+ m_dragCount = 0;
+
+ SetDropTarget( new wxFileDropTarget() );
};
void wxFileCtrl::ChangeToListMode()
event.Skip();
};
-