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