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

📄 loglab.cpp

📁 TeeChart Pro ActiveX是西班牙Steema SL公司开发的图表类控件
💻 CPP
字号:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop

#include "LogLab.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TCustomLabelsForm *CustomLabelsForm;
//---------------------------------------------------------------------------
__fastcall TCustomLabelsForm::TCustomLabelsForm(TComponent* Owner)
  : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TCustomLabelsForm::FormCreate(TObject *Sender)
{
  // Axis settings
  Chart1->BottomAxis->Logarithmic = true;
  Chart1->BottomAxis->TickOnLabelsOnly = true;
  Chart1->BottomAxis->SetMinMax( 10.0, 1000);
  Chart1->LeftAxis->Logarithmic = true;
  Chart1->LeftAxis->TickOnLabelsOnly = true;
  Chart1->LeftAxis->SetMinMax( 10.0, 1000);

  // adding XY values to Series1
  Series1->XValues->DateTime = false;
  Series1->AddXY( 100, 100, "", clTeeColor );
  Series1->AddXY( 500, 200, "", clTeeColor );
  Series1->AddXY( 800, 300, "", clTeeColor );
  Series1->AddXY( 200, 200, "", clTeeColor );  // Axis settings
  Chart1->BottomAxis->Logarithmic = true;
  Chart1->BottomAxis->TickOnLabelsOnly = true;
  Chart1->BottomAxis->SetMinMax( 10.0, 1000);
  Chart1->LeftAxis->Logarithmic = true;
  Chart1->LeftAxis->TickOnLabelsOnly = true;
  Chart1->LeftAxis->SetMinMax( 10.0, 1000);

  // adding XY values to Series1
  Series1->XValues->DateTime = false;
  Series1->AddXY( 100, 100, "", clTeeColor );
  Series1->AddXY( 500, 200, "", clTeeColor );
  Series1->AddXY( 800, 300, "", clTeeColor );
  Series1->AddXY( 200, 200, "", clTeeColor );
}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

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