Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/fProbEdt.pas
- Timestamp:
- Jul 6, 2008, 8:20:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/foia-cprs/CPRS-Chart/fProbEdt.pas
r459 r460 140 140 begin 141 141 Result := not fChanged; 142 (* if not fChanged then143 begin144 result := true;145 exit;146 end;147 if InfoBox('Discard changes?', 'Confirmation', MB_OKCANCEL or MB_ICONQUESTION) <> IDOK then148 result := false149 else150 result := true;*)151 142 end; 152 143 … … 160 151 else 161 152 begin 162 if (not FSilent) and163 (InfoBox('Discard changes?', 'Confirmation', MB_YESNO or MB_ICONQUESTION) <> IDYES) then164 begin165 FCanQuit := False;166 exit;167 end168 else169 begin170 frmProblems.lblProbList.caption := frmProblems.pnlRight.Caption ;171 FCanQuit := True;172 close;173 end;153 if (not FSilent) and 154 (InfoBox('Discard changes?', 'Add/Edit a Problem', MB_YESNO or MB_ICONQUESTION) <> IDYES) then 155 begin 156 FCanQuit := False; 157 exit; 158 end 159 else 160 begin 161 frmProblems.lblProbList.caption := frmProblems.pnlRight.Caption ; 162 FCanQuit := True; 163 close; 164 end; 174 165 end; 175 166 end; … … 388 379 389 380 if Pos(Reason,'E,C') > 0 then ShowComments ; 381 if ProbRec.CmtIsXHTML then 382 begin 383 bbAdd.Enabled := FALSE; 384 bbEdit.Enabled := FALSE; 385 bbRemove.Enabled := FALSE; 386 pnlComments.Hint := ProbRec.CmtNoEditReason; 387 end 388 else 389 begin 390 bbAdd.Enabled := TRUE; 391 bbEdit.Enabled := TRUE; 392 bbRemove.Enabled := TRUE; 393 pnlComments.Hint := ''; 394 end ; 390 395 // =================== changed code - REV 7/30/98 ========================= 391 396 // PlUser.usVerifyTranscribed is a SITE requirement, not a user ability
Note:
See TracChangeset
for help on using the changeset viewer.