git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.DevExpressVCL@29 05c56307-c608-d34a-929d-697000501d7a
35 lines
1.1 KiB
C++
35 lines
1.1 KiB
C++
//---------------------------------------------------------------------------
|
|
#include <vcl.h>
|
|
#pragma hdrstop
|
|
|
|
#include "CustomFunctionFrm.h"
|
|
#include "AreaCustomFunc.h"
|
|
//---------------------------------------------------------------------------
|
|
#pragma package(smart_init)
|
|
#pragma link "cxControls"
|
|
#pragma link "cxSSheet"
|
|
#pragma resource "*.dfm"
|
|
TCustomFunctionForm *CustomFunctionForm;
|
|
//---------------------------------------------------------------------------
|
|
__fastcall TCustomFunctionForm::TCustomFunctionForm(TComponent* Owner)
|
|
: TForm(Owner)
|
|
{
|
|
TcxSSCellObject *CellObject;
|
|
try {
|
|
|
|
cxSpreadSheet->LoadFromFile(ExtractFilePath(Application->ExeName) + "\CustomFunctionEx.xls");
|
|
CellObject = cxSpreadSheet->Sheet->GetCellObject(1,4);
|
|
try {
|
|
CellObject->Text = "=Area(B3:B4)";
|
|
}
|
|
__finally {
|
|
delete CellObject;
|
|
}
|
|
}
|
|
catch (Exception &err) {
|
|
Application->ShowException(&err);
|
|
ActiveMDIChild->Close();
|
|
}
|
|
}
|
|
//---------------------------------------------------------------------------
|