📄 strlistfrm.pas
字号:
unit StrListFrm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, FlexProps;
type
TStrListPropForm = class(TForm)
mmText: TMemo;
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
procedure FormShow(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
FStrListProp: TStrListProp;
public
{ Public declarations }
end;
var
StrListPropForm: TStrListPropForm;
implementation
{$R *.DFM}
procedure TStrListPropForm.FormShow(Sender: TObject);
begin
if (Tag <> 0) and (TObject(Tag) is TStrListProp) then
FStrListProp := TStrListProp(Tag);
if Assigned(FStrListProp) then
mmText.Text := FStrListProp.Text;
end;
procedure TStrListPropForm.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if (ModalResult <> mrOk) or not Assigned(FStrListProp) then exit;
FStrListProp.Text := mmText.Text;
end;
initialization
RegisterDefaultPropEditForm(TStrListProp, TStrListPropForm);
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -