Last change
on this file since 672 was 453, checked in by Kevin Toppenberg, 16 years ago |
Initial upload of TMG-CPRS 1.0.26.69
|
File size:
1.1 KB
|
Rev | Line | |
---|
[453] | 1 | //kt -- Modified with SourceScanner on 8/8/2007
|
---|
| 2 | unit mVitMetric;
|
---|
| 3 |
|
---|
| 4 | interface
|
---|
| 5 |
|
---|
| 6 | uses
|
---|
| 7 | Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
|
---|
| 8 | StdCtrls, ExtCtrls, DKLang;
|
---|
| 9 |
|
---|
| 10 | type
|
---|
| 11 | TfraVitMetric = class(TFrame)
|
---|
| 12 | rgMetric: TRadioGroup;
|
---|
| 13 | DKLanguageController1: TDKLanguageController;
|
---|
| 14 | procedure rgMetricClick(Sender: TObject);
|
---|
| 15 | private
|
---|
| 16 | FChanging: boolean;
|
---|
| 17 | public
|
---|
| 18 | constructor Create(AOwner: TComponent); override;
|
---|
| 19 | procedure VitalsMetricChanged;
|
---|
| 20 | end;
|
---|
| 21 |
|
---|
| 22 | implementation
|
---|
| 23 |
|
---|
| 24 | uses rVitals, uVitals;
|
---|
| 25 |
|
---|
| 26 | {$R *.DFM}
|
---|
| 27 |
|
---|
| 28 | { TfraVitMetric }
|
---|
| 29 |
|
---|
| 30 | constructor TfraVitMetric.Create(AOwner: TComponent);
|
---|
| 31 | begin
|
---|
| 32 | inherited;
|
---|
| 33 | VitalsMetricChanged;
|
---|
| 34 | VitalsFrameCreated(Self);
|
---|
| 35 | end;
|
---|
| 36 |
|
---|
| 37 | procedure TfraVitMetric.rgMetricClick(Sender: TObject);
|
---|
| 38 | begin
|
---|
| 39 | if FChanging then exit;
|
---|
| 40 | SetVitalsMetric(rgMetric.ItemIndex = 1);
|
---|
| 41 | end;
|
---|
| 42 |
|
---|
| 43 | procedure TfraVitMetric.VitalsMetricChanged;
|
---|
| 44 | begin
|
---|
| 45 | FChanging := TRUE;
|
---|
| 46 | try
|
---|
| 47 | if uVitalsMetric then
|
---|
| 48 | rgMetric.ItemIndex := 1
|
---|
| 49 | else
|
---|
| 50 | rgMetric.ItemIndex := 0;
|
---|
| 51 | finally
|
---|
| 52 | FCHanging := FALSE;
|
---|
| 53 | end;
|
---|
| 54 | end;
|
---|
| 55 |
|
---|
| 56 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.