Procedure

TfrmGraphs.MakeChart

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure MakeChart(aChart: TChart; aScrollBox: TScrollBox);

Calls Hierarchy


TfrmGraphs.MakeChart
 ├TfrmGraphs.HideDates
 ├TfrmGraphs.ChartOnZoom
 │ ├TfrmGraphs.SizeDates
 │ │ ├TfrmGraphs.GraphFooter
 │ │ └TfrmGraphs.SeriesForLabels
 │ └TfrmGraphs.ZoomUpdateInfo
 │   ├TfrmGraphs.InfoMessage
 │   └TfrmGraphs.MergedLabsSelected
 ├TfrmGraphs.ChartOnUndoZoom
 │ ├TfrmGraphs.SizeDates...
 │ ├TfrmGraphs.InfoMessage
 │ └TfrmGraphs.MergedLabsSelected
 ├TfrmGraphs.chartBaseClickSeries
 │ ├TfrmGraphs.InactivateHint
 │ └TfrmGraphs.SeriesClicks
 │   ├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.chartBaseClickLegend
 │ └TfrmGraphs.ItemDateRange
 │   ├TfrmGraphs.ValueText...
 │   └ReportBox...
 ├TfrmGraphs.mnuPopGraphDetailsClick
 │ ├TfrmGraphs.ItemCheck
 │ ├TfrmGraphs.HSAbbrev
 │ ├TfrmGraphs.ValueText...
 │ ├TfrmGraphs.LabNameResults
 │ ├TfrmGraphs.AllTypeDate...
 │ ├TfrmGraphs.OneDayTypeDetails
 │ │ ├TfrmGraphs.FileNameX
 │ │ ├TfrmGraphs.ItemName
 │ │ ├rpcDetailDay
 │ │ │ └onoff
 │ │ ├TfrmGraphs.NotifyApps
 │ │ └ReportBox...
 │ └TfrmGraphs.AllDetails
 │   ├TfrmGraphs.HSAbbrev
 │   ├rpcDetailSelected
 │   │ └onoff
 │   ├TfrmGraphs.NotifyApps
 │   ├ReportBox...
 │   └TfrmGraphs.ItemDateRange...
 ├TfrmGraphs.chartBaseMouseDown
 │ ├TfrmGraphs.InactivateHint
 │ └TfrmGraphs.MouseClicks
 │   └TfrmGraphs.LabelClicks
 │     ├TfrmGraphs.mnuPopGraphDetailsClick...
 │     ├TfrmGraphs.ValueText...
 │     ├TfrmGraphs.LabNameResults
 │     └TfrmGraphs.AllTypeDate...
 ├TfrmGraphs.chartBaseMouseUp
 └TfrmGraphs.chartBaseMouseMove
   └TfrmGraphs.InactivateHint

Called-By Hierarchy


                                       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.chartBaseClickLegend procedure chartBaseClickLegend(Sender: TCustomChart; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); -
TfrmGraphs.chartBaseClickSeries procedure chartBaseClickSeries(Sender: TCustomChart; Series: TChartSeries; ValueIndex: Integer; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); -
TfrmGraphs.chartBaseMouseDown procedure chartBaseMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); -
TfrmGraphs.chartBaseMouseMove procedure chartBaseMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); -
TfrmGraphs.chartBaseMouseUp procedure chartBaseMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); -
TfrmGraphs.ChartOnUndoZoom procedure ChartOnUndoZoom(Sender: TObject); -
TfrmGraphs.ChartOnZoom procedure ChartOnZoom(Sender: TObject); -
TfrmGraphs.HideDates procedure HideDates(aChart: TChart); -
TfrmGraphs.mnuPopGraphDetailsClick procedure mnuPopGraphDetailsClick(Sender: TObject); -

Called-By

Name Declaration Comments
TfrmGraphs.MakeSeparateItems procedure MakeSeparateItems(aScrollBox: TScrollBox; aListView: TListView; section: string); -
TfrmGraphs.MakeTogether procedure MakeTogether(aScrollBox: TScrollBox; aListView: TListView; aPadPanel: TPanel; section: string); -


Source

2545  procedure TfrmGraphs.MakeChart(aChart: TChart; aScrollBox: TScrollBox);
2546  begin
2547    with aChart do
2548    begin
2549      Parent := aScrollBox;
2550      View3D := false;
2551      Chart3DPercent := 10;
2552      AllowPanning := pmNone;
2553      Gradient.EndColor := clGradientActiveCaption;
2554      Gradient.StartColor := clWindow;
2555      Legend.LegendStyle := lsSeries;
2556      Legend.ShadowSize := 1;
2557      Legend.Color := clCream;
2558      Legend.VertMargin := 0;
2559      Legend.Alignment := laTop;
2560      Legend.Visible := true;
2561      BottomAxis.ExactDateTime := true;
2562      BottomAxis.Increment := DateTimeStep[dtOneMinute];
2563      HideDates(aChart);
2564      BevelOuter := bvNone;
2565      OnZoom := ChartOnZoom;
2566      OnUndoZoom := ChartOnUndoZoom;
2567      OnClickSeries := chartBaseClickSeries;
2568      OnClickLegend := chartBaseClickLegend;
2569      OnDblClick := mnuPopGraphDetailsClick;
2570      OnMouseDown := chartBaseMouseDown;
2571      OnMouseUp := chartBaseMouseUp;
2572      if FGraphSetting.Hints then
2573        OnMouseMove := chartBaseMouseMove
2574      else
2575        OnMouseMove := nil;
2576    end;
2577  end;