//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "ChartFull.h"
#include "Das_Loader_Log_Analysis.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TChart_Full_Screen *Chart_Full_Screen;
//---------------------------------------------------------------------------
__fastcall TChart_Full_Screen::TChart_Full_Screen(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TChart_Full_Screen::FormActivate(TObject *Sender)
{
        if( DasLoaderLogAnalysis_Main->TabSheet1->Showing){
            DasLoaderLogAnalysis_Main->vaSpread1->Parent = this;
            DasLoaderLogAnalysis_Main->vaSpread1->Top = 0;
            DasLoaderLogAnalysis_Main->vaSpread1->Left = 0;
            DasLoaderLogAnalysis_Main->vaSpread1->Height = 744;
            DasLoaderLogAnalysis_Main->vaSpread1->Width = 1000;
        }
        if(DasLoaderLogAnalysis_Main->TabSheet2->Showing){
            DasLoaderLogAnalysis_Main->ChartFX1->Parent = this;
            DasLoaderLogAnalysis_Main->ChartFX1->Top = 0;
            DasLoaderLogAnalysis_Main->ChartFX1->Left = 0;
            DasLoaderLogAnalysis_Main->ChartFX1->Height = 744;
            DasLoaderLogAnalysis_Main->ChartFX1->Width = 1000;
        }
        if(DasLoaderLogAnalysis_Main->TabSheet3->Showing){
            DasLoaderLogAnalysis_Main->ChartFX2->Parent = this;
            DasLoaderLogAnalysis_Main->ChartFX2->Top = 0;
            DasLoaderLogAnalysis_Main->ChartFX2->Left = 0;
            DasLoaderLogAnalysis_Main->ChartFX2->Height = 744;
            DasLoaderLogAnalysis_Main->ChartFX2->Width = 1000;
        }
        if(DasLoaderLogAnalysis_Main->TabSheet4->Showing){
            DasLoaderLogAnalysis_Main->ChartFX3->Parent = this;
            DasLoaderLogAnalysis_Main->ChartFX3->Top = 0;
            DasLoaderLogAnalysis_Main->ChartFX3->Left = 0;
            DasLoaderLogAnalysis_Main->ChartFX3->Height = 744;
            DasLoaderLogAnalysis_Main->ChartFX3->Width = 1000;
        }
        if(DasLoaderLogAnalysis_Main->TabSheet5->Showing){
            DasLoaderLogAnalysis_Main->ChartFX4->Parent = this;
            DasLoaderLogAnalysis_Main->ChartFX4->Top = 0;
            DasLoaderLogAnalysis_Main->ChartFX4->Left = 0;
            DasLoaderLogAnalysis_Main->ChartFX4->Height = 744;
            DasLoaderLogAnalysis_Main->ChartFX4->Width = 1000;
        }        
}
//---------------------------------------------------------------------------
void __fastcall TChart_Full_Screen::FormDeactivate(TObject *Sender)
{
        if(DasLoaderLogAnalysis_Main->TabSheet1->Showing){
            DasLoaderLogAnalysis_Main->vaSpread1->Parent = DasLoaderLogAnalysis_Main->TabSheet1;
            DasLoaderLogAnalysis_Main->vaSpread1->Top = 0;
            DasLoaderLogAnalysis_Main->vaSpread1->Left = 0;
            DasLoaderLogAnalysis_Main->vaSpread1->Height = 334;
            DasLoaderLogAnalysis_Main->vaSpread1->Width = 650;
        }
        if(DasLoaderLogAnalysis_Main->TabSheet2->Showing){
            DasLoaderLogAnalysis_Main->ChartFX1->Parent = DasLoaderLogAnalysis_Main->TabSheet2;
            DasLoaderLogAnalysis_Main->ChartFX1->Top = 0;
            DasLoaderLogAnalysis_Main->ChartFX1->Left = 0;
            DasLoaderLogAnalysis_Main->ChartFX1->Height = 334;
            DasLoaderLogAnalysis_Main->ChartFX1->Width = 762;
        }
        if(DasLoaderLogAnalysis_Main->TabSheet3->Showing){
            DasLoaderLogAnalysis_Main->ChartFX2->Parent = DasLoaderLogAnalysis_Main->TabSheet3;
            DasLoaderLogAnalysis_Main->ChartFX2->Top = 0;
            DasLoaderLogAnalysis_Main->ChartFX2->Left = 0;
            DasLoaderLogAnalysis_Main->ChartFX2->Height = 334;
            DasLoaderLogAnalysis_Main->ChartFX2->Width = 762;
        }
        if(DasLoaderLogAnalysis_Main->TabSheet4->Showing){
            DasLoaderLogAnalysis_Main->ChartFX3->Parent = DasLoaderLogAnalysis_Main->TabSheet4;
            DasLoaderLogAnalysis_Main->ChartFX3->Top = 0;
            DasLoaderLogAnalysis_Main->ChartFX3->Left = 0;
            DasLoaderLogAnalysis_Main->ChartFX3->Height = 334;
            DasLoaderLogAnalysis_Main->ChartFX3->Width = 762;
        }
        if(DasLoaderLogAnalysis_Main->TabSheet5->Showing){
            DasLoaderLogAnalysis_Main->ChartFX4->Parent = DasLoaderLogAnalysis_Main->TabSheet5;
            DasLoaderLogAnalysis_Main->ChartFX4->Top = 0;
            DasLoaderLogAnalysis_Main->ChartFX4->Left = 0;
            DasLoaderLogAnalysis_Main->ChartFX4->Height = 334;
            DasLoaderLogAnalysis_Main->ChartFX4->Width = 762;
        }        
}
//---------------------------------------------------------------------------
void __fastcall TChart_Full_Screen::FormClose(TObject *Sender,
      TCloseAction &Action)
{
        DasLoaderLogAnalysis_Main->Full_Screen_BT->Enabled = true;
        Action = caFree;
}
//---------------------------------------------------------------------------
