Procedure

TfrmGraphs.chartBaseMouseMove

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Public/Published

Owner

TfrmGraphs

Declaration

procedure chartBaseMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);

Calls Hierarchy


TfrmGraphs.chartBaseMouseMove
 └TfrmGraphs.InactivateHint

Called-By Hierarchy


                            TfrmGraphs.chartBaseMouseMove
                                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.GraphBoundry┤ 
                              TfrmGraphs.MakeTogether┘ │ 
                    TfrmGraphs.MakeTogetherMaybe...┘   │ 
                                   TfrmGraphs.MakeChart┘ 
                         TfrmGraphs.MakeSeparateItems┤   
                         TfrmGraphs.MakeSeparate...┘ │   
                           TfrmGraphs.MakeTogether...┘   

Calls

Name Declaration Comments
TfrmGraphs.InactivateHint procedure InactivateHint; -

Called-By

Name Declaration Comments
TfrmGraphs.GraphBoundry procedure GraphBoundry(singlepoint: boolean); -
TfrmGraphs.MakeChart procedure MakeChart(aChart: TChart; aScrollBox: TScrollBox); -
TfrmGraphs.MakeSeparate procedure MakeSeparate(aScrollBox: TScrollBox; aListView: TListView; aPadPanel: TPanel; section: string); -


Source

7016  procedure TfrmGraphs.chartBaseMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
7017  var
7018    ClickedLegend, ClickedMark, ClickedValue, j: Integer;
7019    itemname: string;
7020    NewPt: TPoint;
7021  begin
7022    //if not FGraphSetting.Hints then exit;       //*****
7023    FX := x;
7024    FY := y;
7025    FActiveGraph := (Sender as TChart);
7026    NewPt := Mouse.CursorPos;
7027    ClickedLegend := -1;
7028    ClickedMark   := -1;
7029    ClickedValue  := -1;
7030    if FHintWinActive then exit;
7031    with FActiveGraph do
7032    begin
7033      for j := 0 to SeriesCount - 1 do
7034      with (Series[j] as TChartSeries) do
7035      begin
7036        itemname := Series[j].Title;
7037        if (length(itemname) > 0) and (Copy(itemname, 1, 7) <> 'Ref Low') and (Copy(itemname, 1, 8) <> 'Ref High') then
7038        begin
7039          ClickedValue := Clicked(FX, FY);
7040          if ClickedValue > -1 then break;
7041          ClickedMark := Marks.Clicked(FX, FY);
7042          if ClickedMark > -1 then break;
7043          ClickedLegend := Legend.Clicked(FX, FY);
7044          if ClickedLegend > -1 then break;
7045        end;
7046      end;
7047      if (ClickedValue > -1) or (ClickedMark > -1) then
7048      begin
7049        FHintStop := false;
7050        Screen.Cursor := crHandPoint;
7051        timHintPause.Enabled := true;
7052      end
7053      else if ClickedLegend > -1 then
7054      begin
7055        timHintPause.Enabled := false;
7056        InactivateHint;
7057        Screen.Cursor := crHandPoint;
7058      end
7059      else
7060      begin
7061        timHintPause.Enabled := false;
7062        InactivateHint;
7063        Screen.Cursor := crDefault;
7064      end;
7065    end;
7066  end;