Procedure

TfrmGraphs.ChartStyle

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure ChartStyle(aChart: TChart);

Calls Hierarchy


TfrmGraphs.ChartStyle
 └TfrmGraphs.HideDates

Called-By Hierarchy


                                      TfrmGraphs.ChartStyle
                                   TfrmGraphs.ChangeStyle┘ 
                                    TfrmGraphs.FormShow┤   
                      TfrmGraphs.btnChangeSettingsClick┤   
                       TfrmReports.btnChangeViewClick┘ │   
                             TfrmGraphs.DisplayDataInfo┤   
                               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...┤ │   │   
                     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.mnuPopGraphLinesClick┤   
                          TfrmGraphs.mnuPopGraph3DClick┤   
                      TfrmGraphs.mnuPopGraphValuesClick┤   
                       TfrmGraphs.mnuPopGraphClearClick┤   
                       TfrmGraphs.mnuPopGraphDatesClick┤   
                    TfrmGraphs.mnuPopGraphGradientClick┤   
                       TfrmGraphs.mnuPopGraphHintsClick┤   
                      TfrmGraphs.mnuPopGraphLegendClick┤   
                     TfrmGraphs.mnuPopGraphIsolateClick┤   
                       TfrmGraphs.mnuPopGraphFixedClick┘   

Calls

Name Declaration Comments
TfrmGraphs.HideDates procedure HideDates(aChart: TChart); -

Called-By

Name Declaration Comments
TfrmGraphs.ChangeStyle procedure ChangeStyle; -


Source

3554  procedure TfrmGraphs.ChartStyle(aChart: TChart);
3555  var
3556    j: integer;
3557  begin
3558    with aChart do
3559    begin
3560      View3D := FGraphSetting.View3D;
3561      Chart3DPercent := 10;
3562      AllowZoom := FGraphSetting.HorizontalZoom;
3563      Gradient.Visible := FGraphSetting.Gradient;
3564      Legend.Visible := FGraphSetting.Legend;
3565      HideDates(aChart);
3566      pnlHeader.Visible := pnlInfo.Visible;
3567      if FGraphSetting.ClearBackground then
3568      begin
3569        Color := clWindow;
3570        Legend.Color := clWindow;
3571        pnlBlankTop.Color := clWindow;
3572        pnlBlankBottom.Color := clWindow;
3573      end
3574      else
3575      begin
3576        Color := clBtnFace;
3577        Legend.Color := clCream;
3578        pnlBlankTop.Color := clBtnFace;
3579        pnlBlankBottom.Color := clBtnFace;
3580      end;
3581      for j := 0 to SeriesCount - 1 do
3582      begin
3583        if Series[j] is TLineSeries then
3584          with (Series[j] as TLineSeries) do
3585          begin
3586            Marks.Visible := FGraphSetting.Values;
3587            LinePen.Visible := FGraphSetting.Lines;
3588          end;
3589        if Series[j] is TPointSeries then
3590          with (Series[j] as TPointSeries) do
3591          if Pointer.Style <> psSmallDot then      // keep non-numeric label unchanged
3592          begin
3593            Marks.Visible := FGraphSetting.Values;
3594            LinePen.Visible := FGraphSetting.Lines;
3595            if Title = '(non-numeric)' then Marks.Visible := FDisplayFreeText;
3596          end;
3597        if Series[j] is TBarSeries then
3598          with (Series[j] as TBarSeries) do
3599          begin
3600            Marks.Visible := FGraphSetting.Values;
3601          end;
3602        if Series[j] is TArrowSeries then
3603          with (Series[j] as TArrowSeries) do
3604          begin
3605            Marks.Visible := FGraphSetting.Values;
3606          end;
3607        if Series[j] is TGanttSeries then
3608          with (Series[j] as TGanttSeries) do
3609          begin
3610            Marks.Visible := FGraphSetting.Values;
3611            LinePen.Visible := FGraphSetting.Lines;
3612          end;
3613      end;
3614    end;
3615  end;