Changeset 1679 for cprs/trunk/CPRS-Chart/Encounter/fPCEBaseMain.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/Encounter/fPCEBaseMain.pas
r829 r1679 60 60 FPCECode: string; 61 61 FSplitterMove: boolean; 62 FProblems: TStringList; 62 63 function GetCat: string; 63 64 procedure UpdateNewItemStr(var x: string); virtual; … … 86 87 87 88 uses fPCELex, fPCEOther, fEncounterFrame, fHFSearch, VA508AccessibilityRouter, 88 ORCtrlsVA508Compatibility, fBase508Form ;89 ORCtrlsVA508Compatibility, fBase508Form, UBAConst; 89 90 90 91 {$R *.DFM} … … 104 105 CheckOffEntries; 105 106 FSectionPopulated := TRUE; 107 if (lbSection.Items.Count > 0) then 108 lblList.Caption := StringReplace(lbSection.DisplayText[lbSection.ItemIndex], 109 '&', '&&', [rfReplaceAll] ); 110 if (lbSection.DisplayText[lbSection.ItemIndex] = DX_PROBLEM_LIST_TXT) then 111 FastAssign(lbxSection.Items, FProblems); 106 112 end; 107 113 … … 296 302 begin 297 303 inherited FormCreate(Sender); 304 FProblems := TStringList.Create; 298 305 lbxSection.HideSelection := TRUE; 299 306 amgrMain.ComponentManager[lbSection] := TLBSectionManager.Create; … … 301 308 302 309 procedure TfrmPCEBaseMain.FormDestroy(Sender: TObject); 303 var 304 i:integer; 305 306 begin 307 inherited; 308 with lbGrid.Items do for i := 0 to Count - 1 do TPCEItem(Objects[i]).Free; 310 begin 311 inherited; 312 FProblems.Free; 309 313 end; 310 314
Note:
See TracChangeset
for help on using the changeset viewer.