You've already forked lazarus-ccr
spready: drag and drop of files from Explorer (patch by Soner).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6583 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -3,12 +3,14 @@ object MainForm: TMainForm
|
||||
Height = 709
|
||||
Top = 190
|
||||
Width = 1120
|
||||
AllowDropFiles = True
|
||||
Caption = 'spready'
|
||||
ClientHeight = 689
|
||||
ClientWidth = 1120
|
||||
Menu = MainMenu
|
||||
OnCloseQuery = FormCloseQuery
|
||||
OnCreate = FormCreate
|
||||
OnDropFiles = FormDropFiles
|
||||
OnShow = FormShow
|
||||
ShowHint = True
|
||||
LCLVersion = '1.9.0.0'
|
||||
|
@ -457,6 +457,7 @@ type
|
||||
procedure ColorComboboxAddColors(Sender: TObject);
|
||||
procedure FormCloseQuery(Sender: TObject; var CanClose: boolean);
|
||||
procedure FormCreate(Sender: TObject);
|
||||
procedure FormDropFiles(Sender: TObject; const FileNames: array of String);
|
||||
procedure FormShow(Sender: TObject);
|
||||
procedure HyperlinkHandler(Sender: TObject; ACaption: String;
|
||||
var AHyperlink: TsHyperlink);
|
||||
@ -1047,6 +1048,14 @@ begin
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
// Drag and drop files from the explorer onto the main form.
|
||||
procedure TMainForm.FormDropFiles(Sender: TObject;
|
||||
const FileNames: array of String);
|
||||
begin
|
||||
WorkbookSource.AutoDetectFormat := true;
|
||||
LoadFile(FileNames[0]);
|
||||
end;
|
||||
|
||||
procedure TMainForm.FormShow(Sender: TObject);
|
||||
begin
|
||||
UpdateInspectorColumns;
|
||||
|
Reference in New Issue
Block a user