Files
HeidiSQL/source/crashdialog.pas
Ansgar Becker f1ac6dce5b fix: fix various compiler hints and warnings
Adds a {%H-} prefix to a few where the compiler is complaining wrongly.
Note: {%H-} affects just the IDE, not the command line.
2026-01-05 19:37:38 +01:00

55 lines
894 B
ObjectPascal

unit crashdialog;
{$mode ObjFPC}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
{ TfrmCrashDialog }
TfrmCrashDialog = class(TForm)
btnIgnore: TButton;
btnAbort: TButton;
btnCopy: TButton;
lblHeader: TLabel;
memoDetails: TMemo;
procedure btnCopyClick(Sender: TObject);
procedure FormShow(Sender: TObject);
private
public
procedure SetDetails(AValue: String);
end;
implementation
{$R *.lfm}
{ TfrmCrashDialog }
procedure TfrmCrashDialog.btnCopyClick(Sender: TObject);
begin
memoDetails.CopyToClipboard;
btnCopy.Caption := btnCopy.Caption + ' ' + '✓';
// enable timer which resets the button caption?
end;
procedure TfrmCrashDialog.FormShow(Sender: TObject);
begin
btnCopy.SetFocus;
end;
procedure TfrmCrashDialog.SetDetails(AValue: String);
begin
memoDetails.Text := AValue;
end;
end.