?? loglab.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 + -