Changeset 830 for cprs/trunk/CPRS-Chart/fPtDemo.pas
- Timestamp:
- Jul 7, 2010, 4:51:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/fPtDemo.pas
r456 r830 5 5 uses 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 StdCtrls, ExtCtrls, ORCtrls, ORFn, ComCtrls; 7 StdCtrls, ExtCtrls, ORCtrls, ORFn, ComCtrls, fBase508Form, 8 VA508AccessibilityManager, uReports; 8 9 9 10 type 10 TfrmPtDemo = class(T Form)11 TfrmPtDemo = class(TfrmBase508Form) 11 12 lblFontTest: TLabel; 12 13 memPtDemo: TRichEdit; … … 58 59 Rect: TRect; 59 60 begin 60 memPtDemo.Color := ReadOnlyColor;61 61 FNewPt := False; 62 62 LoadDemographics(memPtDemo.Lines); … … 113 113 AHeader := TStringList.Create; 114 114 CreatePatientHeader(AHeader, Self.Caption); 115 memPrintReport := TRichEdit.Create(Self);115 memPrintReport := CreateReportTextComponent(Self); 116 116 try 117 117 MaxLines := 60 - AHeader.Count; … … 120 120 with memPrintReport do 121 121 begin 122 Visible := False;123 Parent := Self;124 Width := Printer.Canvas.TextWidth(StringOfChar('-', 74));125 Font.Name := 'Courier New';126 Font.Size := MainFontSize;127 122 StartLine := 4; 128 123 repeat … … 138 133 LastLine := LastLine + i; 139 134 Add(' '); 140 Add(' '); 135 Add(' '); 141 136 Add(StringOfChar('-', 74)); 142 137 if LastLine >= memPtDemo.Lines.Count - 1 then
Note:
See TracChangeset
for help on using the changeset viewer.