Mercurial > mercurial > hgweb_searcher03.cgi
diff src/bprint.cpp @ 3:1a64119ab257
Equipment Regist print-target by Drag & Drop.
author | pyon@macmini |
---|---|
date | Tue, 27 Aug 2013 18:50:00 +0900 |
parents | c066fde99517 |
children | fdba695b99f1 |
line wrap: on
line diff
--- a/src/bprint.cpp Fri Aug 23 18:32:09 2013 +0900 +++ b/src/bprint.cpp Tue Aug 27 18:50:00 2013 +0900 @@ -1,9 +1,10 @@ // Filename : bprint.cpp -// Last Change: 23-Aug-2013. +// Last Change: 27-Aug-2013. // #include "bprint.h" #include "marksheet.h" +#include "dndfile.h" #include "db.h" FrameBatchPrint::FrameBatchPrint( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) @@ -36,6 +37,7 @@ m_grid->SetColSize( 1, 100 ); m_grid->SetColSize( 2, 220 ); m_grid->SetColSize( 3, 70 ); + m_grid->ShowScrollbars( wxSHOW_SB_NEVER, wxSHOW_SB_ALWAYS ); // Rows m_grid->EnableDragRowSize( true ); @@ -69,6 +71,7 @@ this->Centre( wxBOTH ); + this->SetDropTarget( new DnDFile( m_grid ) ); SetGridReadOnly(); }