📄 simpleword.dpr
字号:
program SimpleWord;
{ SimpleWord - A simple word processor that demonstrates some interesting
uses of various COM features.
(c)1997 Naleco Research Inc.
jfl }
uses
Forms,
Main in 'MAIN.PAS' {MainForm},
simpleword_TLB in 'simpleword_TLB.pas',
SimpleWordObject in 'SimpleWordObject.pas' {SimpleWordObject: CoClass};
{$R *.RES}
{$R *.TLB}
begin
Application.Initialize; { Essential function for registering COM server }
Application.CreateForm(TMainForm, MainForm);
// Check out the command line parameters to see if we are being launched
// from the command line
if ParamCount = 0 then
Application.Run
else if ParamCount = 1 then
begin
// Single parameter on the command line is a file name
MainForm.OpenFile( ParamStr( 1 ) );
Application.Run;
end else if ParamCount = 2 then
if ParamStr( 1 ) = '/P' then
MainForm.OpenAndPrintFile( ParamStr( 2 ) );
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -