Procedure

TfrmGraphs.MakeTogether

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure MakeTogether(aScrollBox: TScrollBox; aListView: TListView; aPadPanel: TPanel; section: string);

Calls Hierarchy


TfrmGraphs.MakeTogether
 ├TfrmGraphs.GraphTypeNum
 ├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
 ├TfrmGraphs.PortionSize
 ├TfrmGraphs.SizeTogether
 ├TfrmGraphs.MakeTogetherNoLines
 │ ├TfrmGraphs.GraphTypeNum
 │ └TfrmGraphs.MakeDateline
 │   ├TfrmGraphs.MakeBarSeries
 │   │ ├TfrmGraphs.MakeSeriesPoint
 │   │ ├TfrmGraphs.MakeSeriesInfo
 │   │ │ ├TfrmGraphs.GetData
 │   │ │ │ └TfrmGraphs.FMCorrectedDate
 │   │ │ └TfrmGraphs.NextColor
 │   │ ├TfrmGraphs.NextPointerStyle
 │   │ ├TfrmGraphs.FMCorrectedDate
 │   │ ├TfrmGraphs.HighLow
 │   │ │ └TfrmGraphs.FMToDateTime
 │   │ ├TfrmGraphs.InfoMessage
 │   │ ├TfrmGraphs.MergedLabsSelected
 │   │ └TfrmGraphs.FixedDates
 │   ├TfrmGraphs.MakeVisitGanttSeries
 │   │ ├TfrmGraphs.MakeSeriesPoint
 │   │ ├TfrmGraphs.MakeSeriesInfo...
 │   │ ├TfrmGraphs.FMCorrectedDate
 │   │ ├TfrmGraphs.HighLow...
 │   │ └TfrmGraphs.FixedDates
 │   ├TfrmGraphs.MakePointSeries
 │   │ ├TfrmGraphs.MakeSeriesInfo...
 │   │ ├TfrmGraphs.NextPointerStyle
 │   │ ├TfrmGraphs.FMCorrectedDate
 │   │ ├TfrmGraphs.HighLow...
 │   │ └TfrmGraphs.TempCheck
 │   └TfrmGraphs.MakeGanttSeries
 │     ├TfrmGraphs.MakeSeriesPoint
 │     ├TfrmGraphs.MakeSeriesInfo...
 │     ├TfrmGraphs.FMCorrectedDate
 │     ├TfrmGraphs.HighLow...
 │     └TfrmGraphs.FixedDates
 ├TfrmGraphs.MakeTogetherOnlyLines
 │ ├TfrmGraphs.TitleInfo
 │ │ └TfrmGraphs.RefUnits...
 │ ├TfrmGraphs.MakeLineSeries
 │ │ ├TfrmGraphs.MakeSeriesInfo...
 │ │ ├TfrmGraphs.NextPointerStyle
 │ │ ├TfrmGraphs.BPCheck
 │ │ │ └TfrmGraphs.MakeSeriesBP
 │ │ ├TfrmGraphs.FMCorrectedDate
 │ │ ├TfrmGraphs.HighLow...
 │ │ ├TfrmGraphs.BPAdd
 │ │ │ └TfrmGraphs.BorderValue
 │ │ ├TfrmGraphs.NumAdd
 │ │ │ ├TfrmGraphs.StdDev
 │ │ │ ├TfrmGraphs.BorderValue
 │ │ │ └TfrmGraphs.InvVal
 │ │ ├TfrmGraphs.NonNumSave
 │ │ ├TfrmGraphs.MakeSeriesRef
 │ │ │ └TfrmGraphs.BorderValue
 │ │ ├TfrmGraphs.MakeSeriesPoint
 │ │ ├TfrmGraphs.PainAdd
 │ │ └TfrmGraphs.FixedDates
 │ └TfrmGraphs.DisplayFreeText
 ├TfrmGraphs.MakeTogetherAnyLines
 │ ├TfrmGraphs.SingleLabTest
 │ ├TfrmGraphs.TitleInfo...
 │ ├TfrmGraphs.GraphTypeNum
 │ ├TfrmGraphs.MakeLineSeries...
 │ ├TfrmGraphs.DisplayFreeText
 │ └TfrmGraphs.MakeDateline...
 ├TfrmGraphs.MakeOtherSeries
 │ ├TfrmGraphs.MakeNonNumerics
 │ │ ├TfrmGraphs.PadNonNum
 │ │ │ ├TfrmGraphs.StackNonNum
 │ │ │ └TfrmGraphs.MakeSeriesPoint
 │ │ ├TfrmGraphs.MakeSeriesPoint
 │ │ ├TfrmGraphs.PadLeftNonNumeric
 │ │ ├TfrmGraphs.ChartOnUndoZoom...
 │ │ └TfrmGraphs.MakeNonNumSeries
 │ │   └TfrmGraphs.MakeSeriesPoint
 │ ├TfrmGraphs.DisplayFreeText
 │ └TfrmGraphs.MakeComments
 │   └TfrmGraphs.MakeSeriesPoint
 └TfrmGraphs.GraphBoundry
   ├TfrmGraphs.chartBaseMouseMove...
   └TfrmGraphs.AdjustTimeframe
     └TfrmGraphs.BottomAxis
       └..(rec)..

Called-By Hierarchy


                                  TfrmGraphs.MakeTogether
                           TfrmGraphs.MakeTogetherMaybe┘ 
                               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┘     

Calls

Name Declaration Comments
TfrmGraphs.GraphBoundry procedure GraphBoundry(singlepoint: boolean); -
TfrmGraphs.GraphTypeNum function GraphTypeNum(aType: string): integer; -
TfrmGraphs.MakeChart procedure MakeChart(aChart: TChart; aScrollBox: TScrollBox); -
TfrmGraphs.MakeOtherSeries procedure MakeOtherSeries(aChart: TChart); -
TfrmGraphs.MakeTogetherAnyLines procedure MakeTogetherAnyLines(aListView: TListView; section: string; aChart: TChart); -
TfrmGraphs.MakeTogetherNoLines procedure MakeTogetherNoLines(aListView: TListView; section: string); -
TfrmGraphs.MakeTogetherOnlyLines procedure MakeTogetherOnlyLines(aListView: TListView; section: string; aChart: TChart); -
TfrmGraphs.PortionSize function PortionSize(lcnt, pcnt, gcnt, vcnt, bcnt: integer): double; -
TfrmGraphs.SizeTogether procedure SizeTogether(onlylines, nolines, anylines: Boolean; aScroll: TScrollBox; aChart: TChart; aPanel, aPanelBase: TPanel; portion: Double); -

Called-By

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


Source

2275  procedure TfrmGraphs.MakeTogether(aScrollBox: TScrollBox; aListView:
2276    TListView; aPadPanel: TPanel; section: string);
2277  var
2278    anylines, nolines, onlylines, singlepoint: boolean;
2279    bcnt, gcnt, graphtype, lcnt, pcnt, vcnt: integer;
2280    portion: double;
2281    filetype, typeitem: string;
2282    newchart: TChart;
2283    aGraphItem: TGraphItem;
2284    aListItem: TListItem;
2285  begin
2286    pcnt := 0; gcnt := 0; lcnt := 0; bcnt := 0; vcnt := 0;
2287    onlylines := true;
2288    anylines := false;
2289    nolines := true;
2290    FNonNumerics := false;
2291    if section = 'top' then pnlItemsTop.Tag := 0 else pnlItemsBottom.Tag := 0;
2292    aListItem := aListView.Selected;
2293    while aListItem <> nil do
2294    begin
2295      aGraphItem := TGraphItem(aListItem.SubItems.Objects[3]);
2296      filetype := UpperCase(Piece(aGraphItem.Values, '^', 1));
2297      typeitem := UpperCase(Piece(aGraphItem.Values, '^', 2));
2298      graphtype := GraphTypeNum(filetype);
2299      case graphtype of
2300      1: lcnt := lcnt + 1;
2301      2: bcnt := bcnt + 1;
2302      3: vcnt := vcnt + 1;
2303      4: pcnt := pcnt + 1;
2304      8: gcnt := gcnt + 1;
2305      end;
2306      if graphtype = 1 then
2307      begin
2308        anylines := true;
2309        nolines := false;
2310      end
2311      else
2312        onlylines := false;
2313      aListItem := aListView.GetNextItem(aListItem, sdAll, [isSelected]);
2314    end;
2315    if section = 'top' then
2316      chkItemsTop.Checked := false
2317    else
2318      chkItemsBottom.Checked := false;
2319    GtslTempCheck.Clear;
2320    while aScrollBox.ControlCount > 0 do aScrollBox.Controls[0].Free;
2321    newchart := TChart.Create(self);  // whynot use base?
2322    MakeChart(newchart, aScrollBox);
2323    with newchart do          // if a single line graph do lab stuff (ref range, units) ****************************************
2324    begin
2325      Align := alClient;
2326      LeftAxis.Title.Caption := ' ';
2327    end;
2328    aPadPanel.Visible := true;
2329    portion := PortionSize(lcnt, pcnt, gcnt, vcnt, bcnt);
2330    if section = 'top' then
2331      SizeTogether(onlylines, nolines, anylines, scrlTop, newchart,
2332        pnlDatelineTop, pnlScrollTopBase, portion)
2333    else
2334      SizeTogether(onlylines, nolines, anylines, scrlBottom, newchart,
2335        pnlDatelineBottom, pnlScrollBottomBase, portion);
2336    if btnChangeSettings.Tag = 1 then  splGraphs.Tag := 1 // show ref ranges
2337    else splGraphs.Tag := 0;
2338  
2339    if nolines then MakeTogetherNoLines(aListView, section)
2340    else if onlylines then MakeTogetherOnlyLines(aListView, section, newchart)
2341    else if anylines then MakeTogetherAnyLines(aListView, section, newchart);
2342    MakeOtherSeries(newchart);
2343  
2344    singlepoint := (lcnt = 1) or (pcnt = 1) or (bcnt = 1) or (vcnt = 1);
2345    GraphBoundry(singlepoint);
2346    if FNonNumerics then
2347      if section = 'top' then pnlItemsTop.Tag := 1
2348      else pnlItemsBottom.Tag := 1;
2349  end;