⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 teermsfuncedit.pas

📁 Delphi TeeChartPro.6.01的源代码
💻 PAS
字号:
{********************************************}
{     TeeChart Pro Charting Library          }
{ Copyright (c) 1995-2003 by David Berneda   }
{         All Rights Reserved                }
{********************************************}
unit TeeRMSFuncEdit;
{$I TeeDefs.inc}

interface

uses
  {$IFNDEF LINUX}
  Windows, Messages,
  {$ENDIF}
  SysUtils, Classes,
  {$IFDEF CLX}
  QGraphics, QControls, QForms, QDialogs, QStdCtrls,
  {$ELSE}
  Graphics, Controls, Forms, Dialogs, StdCtrls,
  {$ENDIF}
  TeeEdiPeri, TeCanvas;

{
  Warning: This form is used for both TRMSFunction and TStdDeviationFunction.

  The reason is to share the same form for both functions to save resources,
  as both functions have only a "Complete" boolean property.
}

type
  TRMSFuncEditor = class(TTeeFunctionEditor)
    CBComplete: TCheckBox;
    procedure CBCompleteClick(Sender: TObject);
  private
    { Private declarations }
  protected
    procedure ApplyFormChanges; override;
    procedure SetFunction; override;
  public
    { Public declarations }
  end;

implementation

{$IFNDEF CLX}
{$R *.DFM}
{$ELSE}
{$R *.xfm}
{$ENDIF}

uses StatChar;

procedure TRMSFuncEditor.ApplyFormChanges;
begin
  inherited;
  if IFunction is TRMSFunction then
     TRMSFunction(IFunction).Complete:=CBComplete.Checked
  else
  if IFunction is TStdDeviationFunction then
     TStdDeviationFunction(IFunction).Complete:=CBComplete.Checked;
end;

procedure TRMSFuncEditor.CBCompleteClick(Sender: TObject);
begin
  EnableApply;
end;

procedure TRMSFuncEditor.SetFunction;
begin
  inherited;
  if IFunction is TRMSFunction then
     CBComplete.Checked:=TRMSFunction(IFunction).Complete
  else
     CBComplete.Checked:=TStdDeviationFunction(IFunction).Complete;
end;

initialization
  RegisterClass(TRMSFuncEditor);
end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -