Changeset 1679 for cprs/trunk/CPRS-Chart/fTimeout.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/fTimeout.pas
r830 r1679 9 9 type 10 10 TfrmTimeout = class(TfrmAutoSz) 11 timCountDown: TTimer; 12 pnlTop: TPanel; 11 13 Label1: TStaticText; 12 14 Label2: TStaticText; 15 pnlBottom: TPanel; 16 btnClose: TButton; 13 17 cmdContinue: TButton; 14 18 lblCount: TStaticText; 15 timCountDown: TTimer; 19 pnlWarning: TPanel; 20 imgWarning: TImage; 21 lblWarning: TLabel; 22 lblWarningMultiple: TLabel; 23 lblWarningContinue: TLabel; 24 lblWarningPatient: TLabel; 16 25 procedure FormCreate(Sender: TObject); 17 26 procedure cmdContinueClick(Sender: TObject); 18 27 procedure timCountDownTimer(Sender: TObject); 28 procedure FormShow(Sender: TObject); 29 procedure btnCloseClick(Sender: TObject); 19 30 private 20 31 { Private declarations } … … 55 66 end; 56 67 68 procedure TfrmTimeout.FormShow(Sender: TObject); 69 begin 70 inherited; 71 SetForegroundWindow(Handle); 72 lblWarningPatient.Caption := Patient.Name; 73 lblWarning.Font.Size := lblWarningPatient.Font.Size + 4; 74 if CPRSInstances < 2 then 75 begin 76 pnlWarning.Visible := false; 77 Height := Height - pnlWarning.Height; 78 end; 79 end; 80 81 procedure TfrmTimeout.btnCloseClick(Sender: TObject); 82 begin 83 inherited; 84 FContinue := False; 85 Close; 86 end; 87 57 88 procedure TfrmTimeout.cmdContinueClick(Sender: TObject); 58 89 begin … … 74 105 Dec(FCount); 75 106 lblCount.Caption := IntToStr(FCount); 76 if FCount = 0then107 if FCount < 1 then 77 108 begin 78 109 timCountDown.Enabled := False;
Note:
See TracChangeset
for help on using the changeset viewer.