Changeset 408 for trunk/Inp.pas
- Timestamp:
- Nov 3, 2021, 5:31:17 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Inp.pas
r352 r408 5 5 6 6 uses 7 ScreenTools, Messg, 8 LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, DrawDlg, 9 ButtonA, StdCtrls; 7 ScreenTools, LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, 8 DrawDlg, ButtonA, StdCtrls; 10 9 11 10 type … … 38 37 TitleHeight := Height; 39 38 InitButtons; 40 Center := true;39 Center := True; 41 40 end; 42 41 … … 64 63 ModalResult := mrCancel 65 64 else 66 ModalResult := mrOK 65 ModalResult := mrOK; 67 66 end; 68 67 … … 72 71 begin 73 72 Key := #0; 74 ModalResult := mrOK 73 ModalResult := mrOK; 75 74 end 76 75 else if Key = #27 then 77 76 begin 78 77 Key := #0; 79 ModalResult := mrCancel 80 end 78 ModalResult := mrCancel; 79 end; 81 80 end; 82 81 … … 93 92 procedure TInputDlg.FormClose(Sender: TObject; var Action: TCloseAction); 94 93 begin 95 Center := true94 Center := True; 96 95 end; 97 96 98 97 procedure TInputDlg.CenterToRect(Rect: TRect); 99 98 begin 100 Center := false;99 Center := False; 101 100 Left := Rect.Left + (Rect.Right - Rect.Left - Width) div 2; 102 101 Top := Rect.Top + (Rect.Bottom - Rect.Top - Height) div 2;
Note:
See TracChangeset
for help on using the changeset viewer.