📄 lcdscreenabout.pas.svn-base
字号:
unit LCDScreenAbout;
////////////////////////////////////////////////////////////////////////////////
//
// TLCDScreen / TLCDAnimator v2.5 (15/aug/01)
// written by Jacques VOIRIN
// E-Mail: jacques.voirin@iname.com
//
////////////////////////////////////////////////////////////////////////////////
interface
uses
Dialogs,
{$IFDEF VER140}
DesignIntf, DesignEditors,
{$ELSE}
DsgnIntf,
{$ENDIF}
LCDScreen;
type
////////////////////////////////////////////////////////////////////////////////
//
// TAbout Editor
//
////////////////////////////////////////////////////////////////////////////////
TAboutProperty = class(TStringProperty)
public
function GetAttributes: TPropertyAttributes; override;
procedure Edit; override;
end;
procedure Register;
implementation
////////////////////////////////////////////////////////////////////////////////
//
// TAbout Editor routines.
//
////////////////////////////////////////////////////////////////////////////////
function TAboutProperty.GetAttributes: TPropertyAttributes;
begin
Result := [paDialog];
end;
procedure TAboutProperty.Edit;
begin
MessageDlg(#13 + ' TLCDScreen / TLCDAnimator version 2.5 (15/aug/01)' +
#13 + #13 + 'written by Jacques VOIRIN (jacques.voirin@iname.com)'
+ #13, mtInformation, [mbOk], 0);
end;
////////////////////////////////////////////////////////////////////////////////
//
// TLCDScreen About routines.
//
////////////////////////////////////////////////////////////////////////////////
function GetAbout: string;
begin
GetAbout := 'About LCDScreen';
end;
procedure SetAbout(Value: string);
begin
// just for syntax
end;
////////////////////////////////////////////////////////////////////////////////
//
// Registration of the 'About...' property for LCDScreen and LCDAnimator.
//
////////////////////////////////////////////////////////////////////////////////
procedure Register;
begin
RegisterPropertyEditor(TypeInfo(string), TLCDScreen, 'About', TAboutProperty);
RegisterPropertyEditor(TypeInfo(string), TLCDAnimator, 'About', TAboutProperty);
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -