doublecmd/src/fmultirenamewait.pas
2016-06-23 18:47:19 +00:00

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.