mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: Print setup dialog - close by escape key
This commit is contained in:
parent
589aa63647
commit
1b753023f0
2 changed files with 10 additions and 1 deletions
|
|
@ -11,8 +11,10 @@ object frmPrintSetup: TfrmPrintSetup
|
|||
ClientHeight = 209
|
||||
ClientWidth = 432
|
||||
DesignTimePPI = 120
|
||||
KeyPreview = True
|
||||
OnCloseQuery = FormCloseQuery
|
||||
OnCreate = FormCreate
|
||||
OnKeyDown = FormKeyDown
|
||||
Position = poOwnerFormCenter
|
||||
LCLVersion = '2.0.2.0'
|
||||
object gbMargins: TGroupBox
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ type
|
|||
seeBottom: TFloatSpinEditEx;
|
||||
procedure FormCloseQuery(Sender: TObject; var CanClose: boolean);
|
||||
procedure FormCreate(Sender: TObject);
|
||||
procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
|
||||
private
|
||||
|
||||
public
|
||||
|
|
@ -36,7 +37,7 @@ implementation
|
|||
{$R *.lfm}
|
||||
|
||||
uses
|
||||
uGlobs;
|
||||
LCLType, uGlobs;
|
||||
|
||||
{ TfrmPrintSetup }
|
||||
|
||||
|
|
@ -59,5 +60,11 @@ begin
|
|||
seeBottom.Value:= gPrintMargins.Bottom / 10;
|
||||
end;
|
||||
|
||||
procedure TfrmPrintSetup.FormKeyDown(Sender: TObject; var Key: Word;
|
||||
Shift: TShiftState);
|
||||
begin
|
||||
if Key = VK_ESCAPE then ModalResult:= mrCancel;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue