📄 myeditcomponent.cpp
字号:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "MyEditComponent.h"
//--------------------------------------------------------------------------
static inline TMyEdit *ValidCtrCheck()
{
return new TMyEdit( NULL );
}
//--------------------------------------------------------------------------
__fastcall TMyEdit::TMyEdit( TComponent* Owner ) : TEdit( Owner )
{
Color = clInfoBk;
Font->Color = clInfoText;
Font->Name = "Times New Roman";
Font->Size = 12;
Font->Style = TFontStyles() << fsBold << fsItalic;
}
//--------------------------------------------------------------------------
namespace MyComponents
{
void __fastcall Register()
{
TComponentClass classes[1] = {__classid( TMyEdit )};
RegisterComponents("MyComponents", classes, 0);
}
}
//---------------------------------------------------------------------------
#pragma package(smart_init)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -