📄 列表8.4.txt
字号:
【列表8.4】主题显示格式fromHelpTopic.pas。
unit frmHelpTopic;
interface
uses
SysUtils, Types, Classes, Variants, QGraphics, QControls, QForms, QDialogs,
QStdCtrls;
type
TfrmshTopic := class(TForm)
Memo1: TMemo;
end;
var
frmshTopic: TfrmshTopic;
procedure ShowTopic (const sTopicName: String; const sTopicText: String);
procedure ShutDown;
implementation
{SR *.xfm}
procedure ShowTopic (const sTopicName: String; const sTopicText: String);
begin
if not Assigned (frmshTopic) then
frmshTopic := TfrmshTopic.Create (nil);
frmshTopic. Caption := Format ('Simple Help - %s', [sTopicName]);
frmshTopic.Memo1. Lines.Text := sTopicText;
frmshTopic. Show;
end;
procedure ShutDown;
begin
if Assigned (frmshTopic) then
FreeAndNil (frmshTopic);
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -