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

📄 unit1.cpp

📁 TTrialSoftware PRO是TTrialSoftware的增强版(源代码
💻 CPP
字号:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "TrialSoftware"
#pragma link "AboutSoftware"
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCreate(TObject *Sender)
{
     // You must only insert this line in Create event of main
     // form to active my component
     TrialSoftware1->Execute();        
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button2Click(TObject *Sender)
{
     TrialSoftware1->ShowWindow();          
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button3Click(TObject *Sender)
{
     // If you use this fuction you can make application with
     // limitate feature
     if (TrialSoftware1->Shareware()) {/* none */}
     else {MessageDlg("You application is registered. This fuction is active now.", mtInformation, TMsgDlgButtons() << mbOK, 0);}        
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button4Click(TObject *Sender)
{
     // Status property view status of program
     if (TrialSoftware1->Status() == stRegistered)
             Label8->Caption = "Registered";
     else if (TrialSoftware1->Status() == stUnregistered)
             Label8->Caption = "Unregistered";
     else if (TrialSoftware1->Status() == stExpired)
             Label8->Caption = "Expired";        
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{
     Form1->Close();         
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button5Click(TObject *Sender)
{
     AboutSoftware1->Execute();        
}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

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