Changeset 830 for cprs/trunk/CPRS-Chart/uReports.pas
- Timestamp:
- Jul 7, 2010, 4:51:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/uReports.pas
r456 r830 3 3 interface 4 4 5 uses sysutils, classes, ORFN ;5 uses sysutils, classes, ORFN, ComCtrls, Forms, Graphics; 6 6 7 7 type … … 63 63 Direct : String; //Direct Remote Call flag 64 64 HDR : String; //HDR is data source if = 1 65 FHIE : String; //FHIE is data source if = 1 66 FHIEONLY : String; //FHIEONLY if data is to only include FHIE 65 67 end; 66 68 … … 89 91 function MakePrntProcTreeObject(x: string): PProcTreeObj; 90 92 93 //procedures & functions for Report Fonts 94 95 procedure ReportTextFontChange(Self, Sender: TObject); 96 function CreateReportTextComponent(ParentForm: TForm): TRichEdit; 97 98 91 99 implementation 92 100 … … 116 124 FHandle := AHandle; 117 125 FCount := AData.Count; 118 F Data.Assign(AData);126 FastAssign(AData, FData); 119 127 end; 120 128 … … 123 131 AnObject: PReportTreeObject; 124 132 begin 125 //x=id^Name^Qualifier^HSTag;Routine^Entry^Routine^Remote^Type^Category^RPC^ifn^SortOrder^MaxDaysBack 133 //x=id^Name^Qualifier^HSTag;Routine^Entry^Routine^Remote^Type^Category^RPC^ifn^SortOrder^MaxDaysBack^Direct^HDR^FHIE 126 134 New(AnObject); 127 135 with AnObject^ do … … 140 148 Direct := Piece(x, U, 14); 141 149 HDR := Piece(x, U, 15); 150 FHIE := Piece(x, U, 16); 151 FHIEONLY := Piece(x, U, 17); 142 152 end; 143 153 Result := AnObject; … … 290 300 end; 291 301 302 procedure ReportTextFontChange(Self, Sender: TObject); 303 begin 304 TFont(Sender).Size := 8; 305 end; 306 307 // CQ#70295 308 function CreateReportTextComponent(ParentForm: TForm): TRichEdit; 309 var 310 m: TMethod; 311 begin 312 Result := TRichEdit.Create(ParentForm); 313 with Result do 314 begin 315 Parent := ParentForm; 316 Visible := False; 317 Width := 600; 318 Font.Name := 'Courier New'; 319 Font.Size := 8; 320 m.Code := @ReportTextFontChange; 321 m.Data := ParentForm; 322 Font.OnChange := TNotifyEvent(m); 323 end; 324 end; 325 292 326 end.
Note:
See TracChangeset
for help on using the changeset viewer.