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;
+wxFileCtrl *wxFileCtrl::m_lastFocus = (wxFileCtrl *) NULL;
wxFileCtrl::wxFileCtrl( void )
{
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()
InsertColumn( 3, "Time", wxLIST_FORMAT_LEFT, 50 );
InsertColumn( 4, "Permissions", wxLIST_FORMAT_LEFT, 120 );
};
- wxFileData *fd = NULL;
+ wxFileData *fd = (wxFileData *) NULL;
wxListItem item;
item.m_mask = wxLIST_MASK_TEXT + wxLIST_MASK_DATA;
if (my_style & wxLC_ICON) item.m_mask += wxLIST_MASK_IMAGE;
f = wxFindNextFile();
};
SortItems( ListCompare, 0 );
- RealizeChanges();
};
event.Skip();
};
-