Procedure

TfrmGraphs.LabelClicks

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Public/Published

Owner

TfrmGraphs

Declaration

procedure LabelClicks(aChart: TChart; aSeries: TChartSeries; lbutton: boolean; tmp: integer);

Calls Hierarchy


TfrmGraphs.LabelClicks
 ├TfrmGraphs.mnuPopGraphDetailsClick
 │ ├TfrmGraphs.ItemCheck
 │ ├TfrmGraphs.HSAbbrev
 │ ├TfrmGraphs.ValueText
 │ │ ├TfrmGraphs.NonNumText
 │ │ │ ├TfrmGraphs.FileNameX
 │ │ │ ├TfrmGraphs.ItemName
 │ │ │ └TfrmGraphs.SetRefNonNum
 │ │ │   └TfrmGraphs.RefUnits
 │ │ │     └TfrmGraphs.SelectRef
 │ │ │       └CheckRef
 │ │ ├TfrmGraphs.ItemCheck
 │ │ ├TfrmGraphs.CheckMedNum
 │ │ ├TfrmGraphs.FileNameX
 │ │ ├TfrmGraphs.ValueDates
 │ │ ├TfrmGraphs.ResultValue
 │ │ │ ├TfrmGraphs.serDatelineTopGetMarkText
 │ │ │ └TfrmGraphs.BPValue
 │ │ └TfrmGraphs.OtherInfo
 │ │   └TfrmGraphs.SetRef
 │ │     └TfrmGraphs.RefUnits...
 │ ├TfrmGraphs.LabNameResults
 │ ├TfrmGraphs.AllTypeDate
 │ │ ├TfrmGraphs.CheckToAddData
 │ │ │ ├TfrmGraphs.LabData
 │ │ │ │ ├rpcGetItemData
 │ │ │ │ │ └onoff
 │ │ │ │ ├TfrmGraphs.SpecRefCheck
 │ │ │ │ │ └TfrmGraphs.RefUnits...
 │ │ │ │ ├TfrmGraphs.SpecRefSet
 │ │ │ │ │ └MultiRef
 │ │ │ │ ├TfrmGraphs.FileNameX
 │ │ │ │ ├TfrmGraphs.LabCheck
 │ │ │ │ ├TfrmGraphs.DateRangeMultiItems
 │ │ │ │ └TfrmGraphs.LabAdd
 │ │ │ └rpcGetItemData...
 │ │ ├TfrmGraphs.TempData
 │ │ │ ├TfrmGraphs.ItemName
 │ │ │ └TfrmGraphs.SetRef...
 │ │ └ReportBox
 │ │   └CreateReportBox
 │ │     └TfrmBase508Form.Create
 │ │       ├TfrmBase508Form.UpdateAccessibilityActions
 │ │       ├UnfocusableControlEnter
 │ │       └AdjustControls
 │ │         ├TfrmBase508Form.ModifyUnfocusableControl
 │ │         └..(rec)..
 │ ├TfrmGraphs.OneDayTypeDetails
 │ │ ├TfrmGraphs.FileNameX
 │ │ ├TfrmGraphs.ItemName
 │ │ ├rpcDetailDay
 │ │ │ └onoff
 │ │ ├TfrmGraphs.NotifyApps
 │ │ └ReportBox...
 │ └TfrmGraphs.AllDetails
 │   ├TfrmGraphs.HSAbbrev
 │   ├rpcDetailSelected
 │   │ └onoff
 │   ├TfrmGraphs.NotifyApps
 │   ├ReportBox...
 │   └TfrmGraphs.ItemDateRange
 │     ├TfrmGraphs.ValueText...
 │     └ReportBox...
 ├TfrmGraphs.ValueText...
 ├TfrmGraphs.LabNameResults
 └TfrmGraphs.AllTypeDate...

Called-By Hierarchy


                                           TfrmGraphs.LabelClicks
                                         TfrmGraphs.MouseClicks┘ 
                                TfrmGraphs.chartBaseMouseDown┘   
                                TfrmGraphs.chkItemsTopClick┤     
                             TfrmGraphs.chkItemsBottomClick┤     
                                       TfrmGraphs.MakeChart┘     
                             TfrmGraphs.MakeSeparateItems┤       
                                TfrmGraphs.MakeSeparate┘ │       
                               TfrmGraphs.DisplayData┤   │       
                             TfrmFrame.ClearPatient┤ │   │       
                           TfrmFrame.SetupPatient┘ │ │   │       
                      UpdatePatientInfoForAlert┤   │ │   │       
                   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.AllowCCOWContextChange┤   │ │   │       
                TfrmFrame.mnuFileNextClick...┤ │   │ │   │       
                TfrmFrame.mnuFileOpenClick...┤ │   │ │   │       
       TfrmFrame.mnuFileResumeContextSetClick┘ │   │ │   │       
                    TfrmFrame.UpdateCCOWContext┤   │ │   │       
                TfrmFrame.mnuFileOpenClick...┤ │   │ │   │       
              TfrmFrame.ctxContextorCommitted┤ │   │ │   │       
               TfrmFrame.StartCCOWContextor┘ │ │   │ │   │       
                     TfrmFrame.FormCreate┘   │ │   │ │   │       
       TfrmFrame.mnuFileResumeContextGetClick┘ │   │ │   │       
         TfrmFrame.mnuFileResumeContextSetClick┘   │ │   │       
                            TfrmReports.ClearPtData┤ │   │       
                        TfrmFrame.ClearPatient...┘ │ │   │       
                                  TfrmReports.Graph┤ │   │       
                       TfrmReports.tvReportsClick┘ │ │   │       
                TfrmFrame.lstCIRNLocationsClick┤   │ │   │       
                          TfrmFrame.SetUpCIRN┘ │   │ │   │       
                  TfrmFrame.SetupPatient...┘   │   │ │   │       
                        TfrmReports.DisplayPage┤   │ │   │       
                       TfrmReports.LoadTreeView┤   │ │   │       
                      TfrmReports.DisplayPage┤ │   │ │   │       
         TfrmOptionsReportsDefault.btnOKClick┤ │   │ │   │       
      TfrmOptionsReportsDefault.btnResetClick┤ │   │ │   │       
       TfrmOptionsReportsCustom.btnApplyClick┘ │   │ │   │       
        TfrmOptionsReportsCustom.btnOKClick┘   │   │ │   │       
               TfrmReports.ProcessNotifications┤   │ │   │       
                      TfrmReports.DisplayPage┘ │   │ │   │       
                   TfrmReports.tvReportsKeyDown┤   │ │   │       
                TfrmReports.tvProceduresKeyDown┤   │ │   │       
                    TfrmReports.chkMaxFreqClick┤   │ │   │       
           TfrmOptionsReportsDefault.btnOKClick┤   │ │   │       
        TfrmOptionsReportsDefault.btnResetClick┤   │ │   │       
      TfrmOptionsReportsCustom.btnApplyClick...┘   │ │   │       
                        TfrmGraphs.chkItemsTopClick┤ │   │       
                     TfrmGraphs.chkItemsBottomClick┤ │   │       
                 TfrmGraphs.mnuPopGraphIsolateClick┤ │   │       
                      TfrmGraphs.cboDateRangeChange┤ │   │       
                    TfrmReports.lstDateRangeClick┤ │ │   │       
                         TfrmReports.GraphPanel┘ │ │ │   │       
                         TfrmReports.Graph...┤   │ │ │   │       
                TfrmReports.tvReportsClick...┘   │ │ │   │       
                            TfrmGraphs.Initialize┤ │ │   │       
                      TfrmFrame.ClearPatient...┤ │ │ │   │       
                TfrmFrame.mnuToolsGraphingClick┤ │ │ │   │       
                         TfrmLabs.grdLabClick┤ │ │ │ │   │       
                      TfrmLabs.tvReportsClick┤ │ │ │ │   │       
                       TfrmLabs.DisplayPage┤ │ │ │ │ │   │       
                      TfrmLabs.LoadTreeView┤ │ │ │ │ │   │       
                     TfrmLabs.DisplayPage┤ │ │ │ │ │ │   │       
TfrmOptionsReportsCustom.btnApplyClick...┘ │ │ │ │ │ │   │       
                TfrmLabs.cmdOtherTestsClick┤ │ │ │ │ │   │       
                   TfrmLabs.chkMaxFreqClick┤ │ │ │ │ │   │       
              TfrmLabs.ProcessNotifications┤ │ │ │ │ │   │       
                     TfrmLabs.DisplayPage┘ │ │ │ │ │ │   │       
                                  ..(rec)..┤ │ │ │ │ │   │       
                  TfrmLabs.tvReportsKeyDown┤ │ │ │ │ │   │       
         TfrmFrame.lstCIRNLocationsClick...┘ │ │ │ │ │   │       
                                    ..(rec)..┘ │ │ │ │   │       
                     TfrmReports.ClearPtData...┤ │ │ │   │       
                           TfrmReports.Graph...┘ │ │ │   │       
                              TfrmGraphs.FormShow┤ │ │   │       
                TfrmGraphs.btnChangeSettingsClick┤ │ │   │       
                 TfrmReports.btnChangeViewClick┘ │ │ │   │       
                     TfrmGraphs.CheckExpandedLabs┤ │ │   │       
                          TfrmGraphs.ItemsClick┘ │ │ │   │       
                    TfrmGraphs.DisplayData...┤   │ │ │   │       
               TfrmGraphs.lvwItemsBottomClick┤   │ │ │   │       
                   TfrmGraphs.Initialize...┤ │   │ │ │   │       
                    TfrmGraphs.CheckContext┤ │   │ │ │   │       
                      TfrmGraphs.FormShow┘ │ │   │ │ │   │       
               TfrmGraphs.chkDualViewsClick┤ │   │ │ │   │       
                 TfrmGraphs.Initialize...┤ │ │   │ │ │   │       
                      TfrmGraphs.FormShow┤ │ │   │ │ │   │       
                                   Layout┤ │ │   │ │ │   │       
                     TfrmGraphs.GetSize┘ │ │ │   │ │ │   │       
                  TfrmGraphs.FormShow┘   │ │ │   │ │ │   │       
     TfrmGraphs.mnuPopGraphDualViewsClick┤ │ │   │ │ │   │       
                TfrmGraphs.ViewSelections┘ │ │   │ │ │   │       
          TfrmReports.tvReportsClick...┤   │ │   │ │ │   │       
     TfrmGraphs.btnGraphSelectionsClick┘   │ │   │ │ │   │       
  TfrmReports.btnGraphSelectionsClick┘     │ │   │ │ │   │       
                     TfrmGraphs.GraphSwitch┤ │   │ │ │   │       
                     TfrmGraphs.GraphSwap┘ │ │   │ │ │   │       
        TfrmGraphs.mnuPopGraphSwapClick┘   │ │   │ │ │   │       
                      TfrmGraphs.SplitClick┤ │   │ │ │   │       
         TfrmGraphs.mnuPopGraphSplitClick┘ │ │   │ │ │   │       
           TfrmGraphs.mnuPopGraphClearClick┤ │   │ │ │   │       
                      TfrmGraphs.AutoSelect┤ │   │ │ │   │       
                   TfrmGraphs.ViewsChange┘ │ │   │ │ │   │       
           TfrmGraphs.lstViewsTopChange┤   │ │   │ │ │   │       
             TfrmGraphs.Initialize...┤ │   │ │   │ │ │   │       
            TfrmGraphs.GraphSwitch...┤ │   │ │   │ │ │   │       
     TfrmGraphs.cboDateRangeChange...┤ │   │ │   │ │ │   │       
         TfrmGraphs.ViewSelections...┘ │   │ │   │ │ │   │       
        TfrmGraphs.lstViewsBottomChange┘   │ │   │ │ │   │       
             TfrmGraphs.Initialize...┤     │ │   │ │ │   │       
            TfrmGraphs.GraphSwitch...┤     │ │   │ │ │   │       
     TfrmGraphs.cboDateRangeChange...┤     │ │   │ │ │   │       
         TfrmGraphs.ViewSelections...┘     │ │   │ │ │   │       
            TfrmGraphs.lvwItemsBottomChange┘ │   │ │ │   │       
                  TfrmGraphs.lvwItemsTopClick┘   │ │ │   │       
                   TfrmGraphs.Initialize...┤     │ │ │   │       
                        TfrmGraphs.FormShow┤     │ │ │   │       
            TfrmGraphs.chkDualViewsClick...┤     │ │ │   │       
                  TfrmGraphs.GraphSwitch...┤     │ │ │   │       
                   TfrmGraphs.SplitClick...┤     │ │ │   │       
           TfrmGraphs.mnuPopGraphClearClick┤     │ │ │   │       
                   TfrmGraphs.AutoSelect...┤     │ │ │   │       
           TfrmGraphs.mnuPopGraphResetClick┤     │ │ │   │       
                      TfrmGraphs.FormShow┤ │     │ │ │   │       
    TfrmGraphs.mnuPopGraphHorizontalClick┤ │     │ │ │   │       
      TfrmGraphs.mnuPopGraphVerticalClick┤ │     │ │ │   │       
        TfrmGraphs.mnuPopGraphRemoveClick┤ │     │ │ │   │       
      TfrmGraphs.mnuPopGraphZoomBackClick┘ │     │ │ │   │       
               TfrmGraphs.lvwItemsTopChange┘     │ │ │   │       
                        TfrmGraphs.ViewsChange...┤ │ │   │       
             TfrmGraphs.mnuPopGraphMergeLabsClick┘ │ │   │       
                           TfrmGraphs.ItemsClick...┤ │   │       
                          TfrmGraphs.ViewsChange...┤ │   │       
                  TfrmGraphs.mnuPopGraphRemoveClick┘ │   │       
                         TfrmGraphs.MakeTogetherMaybe┘   │       
                          TfrmGraphs.DisplayData...┘     │       
                                  TfrmGraphs.MakeTogether┘       
                        TfrmGraphs.MakeTogetherMaybe...┘         

Calls

Name Declaration Comments
TfrmGraphs.AllTypeDate procedure AllTypeDate(aType, aTypeName, firstline, secondline: string; aDate, aDate2: double); -
TfrmGraphs.LabNameResults procedure LabNameResults(astring: string; var labname, labresult: string); -
TfrmGraphs.mnuPopGraphDetailsClick procedure mnuPopGraphDetailsClick(Sender: TObject); -
TfrmGraphs.ValueText function ValueText(Sender: TCustomChart; aSeries: TChartSeries; ValueIndex: Integer): string; -

Called-By

Name Declaration Comments
TfrmGraphs.MouseClicks procedure MouseClicks(aChart: TChart; lbutton: boolean; X, Y: Integer); -


Source

4218  procedure TfrmGraphs.LabelClicks(aChart: TChart; aSeries: TChartSeries; lbutton: boolean; tmp: integer);
4219  var
4220    firstnon, toggle: boolean;
4221    i, originalindex: integer;
4222    dttm, labresult, seriestitle, showing, testname, textvalue, textvalue1, textvalue2, typename, typenum: string;
4223  begin
4224      seriestitle := Piece(aSeries.Title, '^', 1);
4225      if seriestitle = '(non-numeric)' then
4226      begin
4227        originalindex := strtointdef(Piece(GtslNonNum[tmp], '^', 3), 0);
4228        seriestitle := Piece(aChart.Series[originalindex].Title, '^', 1);
4229      end;
4230      if (seriestitle = TXT_COMMENTS) and lbutton then
4231      begin
4232        chartDatelineTop.Tag := 0;
4233        mnuPopGraphDetailsClick(self);
4234      end
4235      else if (seriestitle = TXT_NONNUMERICS) and lbutton then
4236      begin
4237        if (aSeries.Identifier = 'serNonNumBottom') or (aSeries.Identifier = 'serNonNumTop') then
4238        begin
4239          firstnon := true;
4240          toggle := false;
4241          for i := 0 to aChart.SeriesCount - 1 do
4242          if Piece(aChart.Series[i].Title, '^', 1) = '(non-numeric)' then
4243          begin
4244            if firstnon then
4245            begin
4246             toggle := not aChart.Series[i].Marks.Visible;
4247             firstnon := false;
4248            end;
4249            aChart.Series[i].Marks.Visible := toggle;
4250          end;
4251        end;
4252      end
4253      else if lbutton and (seriestitle <> TXT_NONNUMERICS) then
4254      begin
4255        textvalue := ValueText(aChart, aSeries, tmp);
4256        textvalue := StringReplace(textvalue, ' 00:00', '', [rfReplaceAll]);
4257        dttm := Piece(textvalue, '^', 3);
4258        typenum := trim(Piece(textvalue, '^', 1));
4259        typename := Piece(textvalue, '^', 2);
4260        textvalue1 := typename + '  ' + dttm;
4261        if typenum = '63' then
4262        begin
4263          LabNameResults(textvalue, testname, labresult);
4264          textvalue2 := testname + '  ' + labresult;
4265        end
4266        else
4267          textvalue2 := Piece(textvalue, '^', 4) + '  ' + Piece(textvalue, '^', 5);
4268        AllTypeDate(typenum, typename, textvalue1, textvalue2, FDate1, FDate2);
4269      end
4270      else if (Piece(aSeries.Title, '^', 1) <> TXT_NONNUMERICS)
4271          and (Piece(aSeries.Title, '^', 1) <> TXT_COMMENTS) then
4272      begin
4273        mnuPopGraphIsolate.Enabled := true;
4274        if pnlTop.Tag = 1 then
4275          mnuPopGraphIsolate.Caption := 'Move - ' + seriestitle + ' - from Top to Bottom'
4276        else
4277          mnuPopGraphIsolate.Caption := 'Move - ' + seriestitle + ' - from Bottom to Top';
4278        scrlTop.Hint := 'Details - for ' + seriestitle + ' for ' +
4279          FormatDateTime('mmm d, yyyy  h:nn am/pm', FDate1);
4280        scrlTop.Tag := tmp + 1;
4281        mnuPopGraphIsolate.Hint := seriestitle;
4282        mnuPopGraphRemove.Enabled := true;
4283        mnuPopGraphRemove.Caption := 'Remove - ' + seriestitle;
4284        mnuPopGraphDetails.Caption := 'Details - ' + seriestitle;
4285        if FGraphSeries.Marks.Visible then showing := ' - turn off' else showing := ' - turn on';
4286        mnuPopGraphValueMarks.Caption := 'Values - ' + seriestitle + showing;
4287        mnuPopGraphValueMarks.Enabled := true;
4288      end;
4289  end;