connectionpropertiesform.cpp

来自「著名的SecureBlackBox控件完整源码」· C++ 代码 · 共 37 行

CPP
37
字号
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "ConnectionPropertiesForm.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TfrmConnectionProperties *frmConnectionProperties;
//---------------------------------------------------------------------------
__fastcall TfrmConnectionProperties::TfrmConnectionProperties(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TfrmConnectionProperties::edPortKeyPress(TObject *Sender,
      char &Key)
{
    if (Key<'0' || Key >'9')
        Key = 0;
}
//---------------------------------------------------------------------------
void __fastcall TfrmConnectionProperties::FormShow(TObject *Sender)
{
    edPassword->Text = "";
}
//---------------------------------------------------------------------------
void __fastcall TfrmConnectionProperties::sbPrivateKeyClick(
      TObject *Sender)
{
    if (OpenDialog->Execute())
        edPrivateKey->Text = OpenDialog->FileName;
}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

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