Procedure

TfrmdlgProb.bbQuitClick

Module

fProbEdt

Last Modified

7/15/2014 3:26:38 PM

Visibility

Public/Published

Owner

TfrmdlgProb

Declaration

procedure bbQuitClick(Sender: TObject);

Calls Hierarchy


TfrmdlgProb.bbQuitClick
 └TfrmdlgProb.OkToQuit

Called-By Hierarchy


                        TfrmdlgProb.bbQuitClick
              TfrmProblems.AllowContextChange┘ 
            TfrmFrame.AllowContextChangeAll┘   
                 TfrmFrame.FormCloseQuery┤     
               TfrmFrame.mnuFileNextClick┤     
             TfrmFrame.mnuFileOpenClick┤ │     
                 TfrmFrame.UMInitiate┤ │ │     
        TfrmFrame.mnuFileNextClick...┤ │ │     
        TfrmFrame.mnuFileRefreshClick┤ │ │     
        TfrmOrders.CheckOrderStatus┤ │ │ │     
    TfrmOrders.mnuActChgEvntClick┤ │ │ │ │     
       TfrmOrders.mnuActHoldClick┤ │ │ │ │     
     TfrmOrders.mnuActUnholdClick┤ │ │ │ │     
      TfrmOrders.mnuActRenewClick┤ │ │ │ │     
     TfrmOrders.mnuActChangeClick┤ │ │ │ │     
       TfrmOrders.mnuActCopyClick┘ │ │ │ │     
             TfrmMeds.mnuActDCClick┤ │ │ │     
            TfrmMeds.CheckMedStatus┘ │ │ │     
         TfrmMeds.mnuActHoldClick┤   │ │ │     
        TfrmMeds.mnuActRenewClick┤   │ │ │     
       TfrmMeds.mnuActUnholdClick┤   │ │ │     
       TfrmMeds.mnuActChangeClick┤   │ │ │     
         TfrmMeds.mnuActCopyClick┤   │ │ │     
       TfrmMeds.mnuActRefillClick┘   │ │ │     
                   TfrmFrame.ViewInfo┘ │ │     
                TfrmDCSumm.ViewInfo┤   │ │     
              TfrmConsults.ViewInfo┤   │ │     
      TfrmFrame.pnlRemindersMouseUp┤   │ │     
       TfrmFrame.RemindersChanged┘ │   │ │     
           TfrmFrame.FormCreate┘   │   │ │     
             TfrmFrame.pnlCIRNClick┤   │ │     
       TfrmFrame.pnlVistaWebClick┤ │   │ │     
            TfrmFrame.FormKeyDown┘ │   │ │     
          TfrmFrame.pnlPatientClick┤   │ │     
            TfrmFrame.pnlVisitClick┤   │ │     
      TfrmFrame.pnlPrimaryCareClick┤   │ │     
        TfrmFrame.pnlRemindersClick┤   │ │     
         TfrmFrame.pnlPostingsClick┤   │ │     
             TfrmFrame.pnlFlagClick┤   │ │     
               TfrmFrame.laMHVClick┤   │ │     
              TfrmFrame.laVAA2Click┤   │ │     
                TfrmOrders.ViewInfo┤   │ │     
                  TfrmMeds.ViewInfo┤   │ │     
               TfrmSurgery.ViewInfo┤   │ │     
                 TfrmNotes.ViewInfo┤   │ │     
              TfrmProblems.ViewInfo┘   │ │     
      TfrmFrame.mnuFileNotifRemoveClick┤ │     
              TfrmFrame.NextButtonClick┘ │     
            TfrmFrame.SetUpNextButton┘   │     
      TfrmFrame.mnuFileOpenClick...┤     │     
               TfrmFrame.FormResize┘     │     
             TfrmFrame.ChangeFont┘       │     
     TfrmFrame.LoadSizesForUser┤         │     
TfrmFrame.LoadUserPreferences┘ │         │     
       TfrmFrame.UMInitiate┘   │         │     
     TfrmFrame.mnuFontSizeClick┘         │     
            TfrmFrame.mnuFileOpenClick...┤     
            TfrmFrame.ctxContextorPending┤     
           TfrmFrame.StartCCOWContextor┘ │     
                 TfrmFrame.FormCreate┘   │     
          TfrmFrame.ctxContextorCommitted┤     
        TfrmFrame.StartCCOWContextor...┘ │     
   TfrmFrame.mnuFileResumeContextGetClick┤     
   TfrmFrame.mnuFileResumeContextSetClick┘     

Calls

Name Declaration Comments
TfrmdlgProb.OkToQuit function OkToQuit:boolean; -

Called-By

Name Declaration Comments
TfrmProblems.AllowContextChange function AllowContextChange(var WhyNot: string): Boolean; override; -


Source

161   procedure TfrmdlgProb.bbQuitClick(Sender: TObject);
162   begin
163     if OkToQuit then
164       begin
165         frmProblems.lblProbList.caption := frmProblems.pnlRight.Caption ;
166         frmProblems.wgProbData.TabStop := True; //CQ #15531 part (c) [CPRS v28.1] {TC}.
167         //correct JAWS from reading the 'Edit Problem' caption of the wgProbData captionlistbx.
168         if AnsiCompareText(frmProblems.wgProbData.Caption, 'Edit Problem')=0 then
169            frmProblems.wgProbData.Caption := frmProblems.lblProbList.caption;
170         close;
171       end
172     else
173       begin
174         if (not FSilent) and
175            (InfoBox('Discard changes?', 'Add/Edit a Problem', MB_YESNO or MB_ICONQUESTION) <> IDYES) then
176           begin
177             FCanQuit := False;
178             exit;
179           end
180         else
181           begin
182             frmProblems.lblProbList.caption := frmProblems.pnlRight.Caption ;
183             frmProblems.wgProbData.TabStop := True; //CQ #15531 part (c) [CPRS v28.1] {TC}.
184             //correct JAWS from reading the 'Edit Problem' caption of the wgProbData captionlistbx.
185             if AnsiCompareText(frmProblems.wgProbData.Caption, 'Edit Problem')=0 then
186                frmProblems.wgProbData.Caption := frmProblems.lblProbList.caption;
187             FCanQuit := True;
188             close;
189           end;
190       end;
191   end;