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

📄 customfunctionfrm.cpp

📁 DevExpress公司出品的Borland Delphi和C++ Builder的控件(包含完整源代码)。 ExpressSpreadSheet:交叉数据表格控件。 一款Delphi
💻 CPP
字号:
//---------------------------------------------------------------------------
#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();
  }
}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

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