Procedure

TfrmGraphs.ChangeStyle

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure ChangeStyle;

Calls Hierarchy


TfrmGraphs.ChangeStyle
 ├TfrmGraphs.ChartStyle
 │ └TfrmGraphs.HideDates
 └TfrmGraphs.ChartColor

Called-By Hierarchy


                                   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.ChartColor procedure ChartColor(aColor: TColor); -
TfrmGraphs.ChartStyle procedure ChartStyle(aChart: TChart); -

Called-By

Name Declaration Comments
TfrmGraphs.btnChangeSettingsClick procedure btnChangeSettingsClick(Sender: TObject); -
TfrmGraphs.DisplayDataInfo procedure DisplayDataInfo(aScrollBox: TScrollBox; aMemo: TMemo); -
TfrmGraphs.FormShow procedure FormShow(Sender: TObject); -
TfrmGraphs.mnuPopGraph3DClick procedure mnuPopGraph3DClick(Sender: TObject); -
TfrmGraphs.mnuPopGraphClearClick procedure mnuPopGraphClearClick(Sender: TObject); -
TfrmGraphs.mnuPopGraphDatesClick procedure mnuPopGraphDatesClick(Sender: TObject); -
TfrmGraphs.mnuPopGraphFixedClick procedure mnuPopGraphFixedClick(Sender: TObject); -
TfrmGraphs.mnuPopGraphGradientClick procedure mnuPopGraphGradientClick(Sender: TObject); -
TfrmGraphs.mnuPopGraphHintsClick procedure mnuPopGraphHintsClick(Sender: TObject); -
TfrmGraphs.mnuPopGraphIsolateClick procedure mnuPopGraphIsolateClick(Sender: TObject); -
TfrmGraphs.mnuPopGraphLegendClick procedure mnuPopGraphLegendClick(Sender: TObject); -
TfrmGraphs.mnuPopGraphLinesClick procedure mnuPopGraphLinesClick(Sender: TObject); -
TfrmGraphs.mnuPopGraphValuesClick procedure mnuPopGraphValuesClick(Sender: TObject); -


Source

3617  procedure TfrmGraphs.ChangeStyle;
3618  var
3619    i: integer;
3620    ChildControl: TControl;
3621    ClearColor, OriginalColor: TColor;
3622  begin
3623    OriginalColor := pnlItemsTopInfo.Color;
3624    ClearColor := clWindow;
3625    for i := 0 to scrlTop.ControlCount - 1 do
3626    begin
3627      ChildControl := scrlTop.Controls[i];
3628      ChartStyle(ChildControl as TChart);
3629    end;
3630    for i := 0 to scrlBottom.ControlCount - 1 do
3631    begin
3632      ChildControl := scrlBottom.Controls[i];
3633      ChartStyle(ChildControl as TChart);
3634    end;
3635    if pnlDateLineTop.Visible then   // not visible when separate graphs
3636      ChartStyle(chartDateLineTop);
3637    if pnlDateLineBottom.Visible then
3638      ChartStyle(chartDateLineBottom);
3639    if FGraphSetting.ClearBackground then
3640      ChartColor(ClearColor)
3641    else
3642      ChartColor(OriginalColor);
3643    mnuPopGraphLines.Checked := FGraphSetting.Lines;
3644    mnuPopGraph3D.Checked := FGraphSetting.View3D;
3645    mnuPopGraphValues.Checked := FGraphSetting.Values;
3646    mnuPopGraphDates.Checked := FGraphSetting.Dates;
3647    mnuPopGraphFixed.Checked := FGraphSetting.FixedDateRange;
3648    mnuPopGraphGradient.Checked := FGraphSetting.Gradient;
3649    mnuPopGraphHints.Checked := FGraphSetting.Hints;
3650    mnuPopGraphStayOnTop.Checked := FGraphSetting.StayOnTop;
3651    mnuPopGraphLegend.Checked := FGraphSetting.Legend;
3652    mnuPopGraphSort.Checked := FGraphSetting.SortColumn = 1;
3653    mnuPopGraphClear.Checked := FGraphSetting.ClearBackground;
3654    mnuPopGraphVertical.Checked := FGraphSetting.VerticalZoom;
3655    mnuPopGraphHorizontal.Checked := FGraphSetting.HorizontalZoom;
3656    mnuPopGraphMergeLabs.Checked := FGraphSetting.MergeLabs;
3657  end;