Ignore:
Timestamp:
May 7, 2015, 12:34:29 PM (9 years ago)
Author:
healthsevak
Message:

Updating the working copy to CPRS version 28

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/fTimeout.pas

    r830 r1679  
    99type
    1010  TfrmTimeout = class(TfrmAutoSz)
     11    timCountDown: TTimer;
     12    pnlTop: TPanel;
    1113    Label1: TStaticText;
    1214    Label2: TStaticText;
     15    pnlBottom: TPanel;
     16    btnClose: TButton;
    1317    cmdContinue: TButton;
    1418    lblCount: TStaticText;
    15     timCountDown: TTimer;
     19    pnlWarning: TPanel;
     20    imgWarning: TImage;
     21    lblWarning: TLabel;
     22    lblWarningMultiple: TLabel;
     23    lblWarningContinue: TLabel;
     24    lblWarningPatient: TLabel;
    1625    procedure FormCreate(Sender: TObject);
    1726    procedure cmdContinueClick(Sender: TObject);
    1827    procedure timCountDownTimer(Sender: TObject);
     28    procedure FormShow(Sender: TObject);
     29    procedure btnCloseClick(Sender: TObject);
    1930  private
    2031    { Private declarations }
     
    5566end;
    5667
     68procedure TfrmTimeout.FormShow(Sender: TObject);
     69begin
     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;
     79end;
     80
     81procedure TfrmTimeout.btnCloseClick(Sender: TObject);
     82begin
     83  inherited;
     84  FContinue := False;
     85  Close;
     86end;
     87
    5788procedure TfrmTimeout.cmdContinueClick(Sender: TObject);
    5889begin
     
    74105  Dec(FCount);
    75106  lblCount.Caption := IntToStr(FCount);
    76   if FCount = 0 then
     107  if FCount < 1 then
    77108  begin
    78109    timCountDown.Enabled := False;
Note: See TracChangeset for help on using the changeset viewer.