fpspreadsheet: Implement drag and drop of file to biffexplorer
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4177 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
54e0dc8d6f
commit
80738eec17
@ -530,8 +530,8 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
procedure TBIFFGrid.SetBIFFNodeData(AData: TBIFFNodeData; ABuffer: TBIFFBuffer;
|
||||
AFormat: TsSpreadsheetFormat);
|
||||
procedure TBIFFGrid.SetBIFFNodeData(AData: TBIFFNodeData;
|
||||
ABuffer: TBIFFBuffer; AFormat: TsSpreadsheetFormat);
|
||||
begin
|
||||
if AData = nil then
|
||||
exit;
|
||||
|
@ -3,6 +3,7 @@ object MainForm: TMainForm
|
||||
Height = 576
|
||||
Top = 177
|
||||
Width = 1089
|
||||
AllowDropFiles = True
|
||||
Caption = 'BIFF Explorer'
|
||||
ClientHeight = 556
|
||||
ClientWidth = 1089
|
||||
@ -10,6 +11,7 @@ object MainForm: TMainForm
|
||||
OnCloseQuery = FormCloseQuery
|
||||
OnCreate = FormCreate
|
||||
OnDestroy = FormDestroy
|
||||
OnDropFiles = FormDropFiles
|
||||
OnShow = FormShow
|
||||
ShowHint = True
|
||||
LCLVersion = '1.5'
|
||||
|
@ -110,6 +110,7 @@ type
|
||||
procedure FormCloseQuery(Sender: TObject; var CanClose: boolean);
|
||||
procedure FormCreate(Sender: TObject);
|
||||
procedure FormDestroy(Sender: TObject);
|
||||
procedure FormDropFiles(Sender: TObject; const FileNames: array of String);
|
||||
procedure FormShow(Sender: TObject);
|
||||
procedure GridClick(Sender: TObject);
|
||||
procedure HexGridPrepareCanvas(sender: TObject; aCol, aRow: Integer;
|
||||
@ -677,6 +678,13 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
procedure TMainForm.FormDropFiles(Sender: TObject;
|
||||
const FileNames: array of String);
|
||||
begin
|
||||
LoadFile(FileNames[0]);
|
||||
end;
|
||||
|
||||
|
||||
procedure TMainForm.FormShow(Sender: TObject);
|
||||
begin
|
||||
Width := Width + 1; // remove black rectangle next to ValueGrid
|
||||
|
Loading…
Reference in New Issue
Block a user