📄 objectpascal.txt
字号:
{*******************************************************}
{ }
{ Object Inspector Environment Options }
{ }
{ Copyright (c) 1997-2000 Dream Company }
{ http://www.dream-com.com }
{ e-mail: contact@dream-com.com }
{ }
{*******************************************************}
unit dcinspopt;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, dcsystem, dcpedit, dcedit, dcconsts, dcgen,
dccommon, oinspect, dcdreamlib;
type
TInspOptForm = class(TForm)
OInspectGroup: TGroupBox;
InspectorOptions: TDCPropRadioButton;
VbStyleRad: TDCPropRadioButton;
SmartPopupChk: TDCPropCheckBox;
ShowCatChk: TDCPropCheckBox;
EditAlias: TButton;
DCPropCheckBox1: TDCPropCheckBox;
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure EditAliasClick(Sender: TObject);
private
fInspOptions : TInspectorOptions;
public
procedure CMApplyOptions(var Msg : TMessage); message CM_APPLYOPTIONS;
end;
var
InspOptForm: TInspOptForm;
implementation
{$R *.DFM}
procedure TInspOptForm.FormCreate(Sender: TObject);
begin
SetFormFont(self);
GlobalInspectorOptions;
fInspOptions := TInspectorOptions.Create;
InspectorOptions.Component := fInspOptions;
Caption := SInspectOptions;
OInspectGroup.Caption := SOInspector;
InspectorOptions.Caption := SDelphiStyle;
VbStyleRad.Caption := SVbStyle;
SmartPopupChk.Caption := SSmartPopup;
ShowCatChk.Caption := SShowCategory;
EditAlias.Caption := SEditAliases;
end;
procedure TInspOptForm.FormDestroy(Sender: TObject);
begin
fInspOptions.Free;
end;
procedure TInspOptForm.CMApplyOptions(var Msg : TMessage);
begin
fInspOptions.ApplyOptions;
end;
procedure TInspOptForm.EditAliasClick(Sender: TObject);
begin
CallPropertyEdit(fInspOptions,'Aliases');//don't resource
end;
initialization
RegisterOptionsFormOrder(TInspOptForm, 1);
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -