source: cprs/trunk/CPRS-Chart/Vitals/mVitWeight.pas@ 485

Last change on this file since 485 was 456, checked in by Kevin Toppenberg, 16 years ago

Initial Upload of Official WV CPRS 1.0.26.76

File size: 1.0 KB
Line 
1unit mVitWeight;
2
3interface
4
5uses
6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
7 mVitBase, StdCtrls, Buttons, ComCtrls;
8
9type
10 TfraVitWeight = class(TfraVitBase)
11 edtWtLbs: TEdit;
12 lblLbs: TLabel;
13 udWeight: TUpDown;
14 edtWtKg: TEdit;
15 Label1: TLabel;
16 private
17 { Private declarations }
18 public
19 procedure VitalsMetricChanged; override;
20 function GetVitalInfo: TVitInfo; override;
21 end;
22
23var
24 fraVitWeight: TfraVitWeight;
25
26implementation
27
28uses uVitals, rVitals;
29
30{$R *.DFM}
31
32{ TfraVitWeight }
33
34function TfraVitWeight.GetVitalInfo: TVitInfo;
35begin
36 Result.VType := vtWeight;
37 Result.VValue := edtWtLbs.Text;
38end;
39
40procedure TfraVitWeight.VitalsMetricChanged;
41begin
42 inherited;
43 edtWtKg.Color := VitEnabledColor[uVitalsMetric];
44 edtWtKg.Enabled := uVitalsMetric;
45 edtWtKg.TabStop := uVitalsMetric;
46 edtWtLbs.Color := VitEnabledColor[not uVitalsMetric];
47 edtWtLbs.Enabled := not uVitalsMetric;
48 edtWtLbs.TabStop := not uVitalsMetric;
49end;
50
51end.
Note: See TracBrowser for help on using the repository browser.