mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
54 lines
1,000 B
ObjectPascal
54 lines
1,000 B
ObjectPascal
unit fMultiRenameWait;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
|
|
ButtonPanel, uOSForms;
|
|
|
|
type
|
|
|
|
{ TfrmMultiRenameWait }
|
|
|
|
TfrmMultiRenameWait = class(TModalDialog)
|
|
ButtonPanel: TButtonPanel;
|
|
lblMessage: TLabel;
|
|
procedure FormPaint(Sender: TObject);
|
|
private
|
|
{ private declarations }
|
|
public
|
|
{ public declarations }
|
|
end;
|
|
|
|
function ShowMultiRenameWaitForm(const AFileName: String; TheOwner: TCustomForm): Boolean;
|
|
|
|
implementation
|
|
|
|
uses
|
|
uShowForm;
|
|
|
|
function ShowMultiRenameWaitForm(const AFileName: String; TheOwner: TCustomForm): Boolean;
|
|
begin
|
|
with TfrmMultiRenameWait.Create(TheOwner) do
|
|
try
|
|
Hint := AFileName;
|
|
Result := (ShowModal = mrOK);
|
|
finally
|
|
Free;
|
|
end;
|
|
end;
|
|
|
|
{$R *.lfm}
|
|
|
|
{ TfrmMultiRenameWait }
|
|
|
|
procedure TfrmMultiRenameWait.FormPaint(Sender: TObject);
|
|
begin
|
|
OnPaint := nil;
|
|
ShowEditorByGlob(Hint);
|
|
end;
|
|
|
|
end.
|
|
|