📄 rm_restr.pas
字号:
{*****************************************}
{ }
{ Report Machine v2.0 }
{ Restrictions editor }
{ }
{*****************************************}
unit RM_Restr;
interface
{$I RM.inc}
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TRMRestrictionsForm = class(TForm)
GroupBox1: TGroupBox;
chkDontEditMemo: TCheckBox;
chkDontEditScript: TCheckBox;
chkDontEditContents: TCheckBox;
chkDontModify: TCheckBox;
chkDontSize: TCheckBox;
chkDontMove: TCheckBox;
chkDontDelete: TCheckBox;
btnOK: TButton;
btnCancel: TButton;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
procedure Localize;
public
{ Public declarations }
end;
implementation
uses RM_Const, RM_Utils;
{$R *.DFM}
procedure TRMRestrictionsForm.Localize;
begin
Font.Name := RMLoadStr(SRMDefaultFontName);
Font.Size := StrToInt(RMLoadStr(SRMDefaultFontSize));
Font.Charset := StrToInt(RMLoadStr(SCharset));
RMSetStrProp(Self, 'Caption', rmRes + 260);
RMSetStrProp(chkDontEditMemo, 'Caption', rmRes + 261);
RMSetStrProp(chkDontEditScript, 'Caption', rmRes + 262);
RMSetStrProp(chkDontEditContents, 'Caption', rmRes + 263);
RMSetStrProp(chkDontModify, 'Caption', rmRes + 264);
RMSetStrProp(chkDontSize, 'Caption', rmRes + 265);
RMSetStrProp(chkDontMove, 'Caption', rmRes + 266);
RMSetStrProp(chkDontDelete, 'Caption', rmRes + 267);
btnOK.Caption := RMLoadStr(SOk);
btnCancel.Caption := RMLoadStr(SCancel);
end;
procedure TRMRestrictionsForm.FormCreate(Sender: TObject);
begin
Localize;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -