Inno setup Inno设置更改CreateOutputMsgMemoPage字体

Inno setup Inno设置更改CreateOutputMsgMemoPage字体,inno-setup,Inno Setup,是否可以更改使用createoutputmsgemopage创建的窗口的实际消息部分显示的字体 我需要将数据库查询的一些结果返回到Inno安装程序中的窗口,我正在使用以下命令从文件中读取: LoadStringFromFile(ExpandConstant('{app}\Output.txt'), astrResults); 然后像这样创建页面: ResultsPage := CreateOutputMsgMemoPage(wpInstalling, 'Results', 'The follo

是否可以更改使用
createoutputmsgemopage
创建的窗口的实际消息部分显示的字体

我需要将数据库查询的一些结果返回到Inno安装程序中的窗口,我正在使用以下命令从文件中读取:

LoadStringFromFile(ExpandConstant('{app}\Output.txt'), astrResults);
然后像这样创建页面:

ResultsPage := CreateOutputMsgMemoPage(wpInstalling,
'Results', 'The following results were returned from the database.',
'',
astrResults);
问题是,当文本以可变宽度字体显示时,我将丢失文本文件中以列选项卡分隔的格式。因此,我需要使用固定宽度字体(例如Lucida Console)来保持正确的格式。有没有办法做到这一点?

可以使用:

ResultsPage.RichEditViewer.Font.Name := 'Lucida Console';
要更改字体,请执行以下操作:

ResultsPage.RichEditViewer.Font.Size := 9;

改变尺寸。谢谢@TLama.

是的,
ResultsPage.RichEditViewer.Font.Name:=“Lucida控制台”。在本例中,您总是可以在,
TOutputMsgMemoWizardPage
类中找到返回对象的类描述,该类有两个已发布的成员,
RichEditViewer
其中一个显然是内容控件。然后,您只需单击这些类即可查看其成员,直到找到与字体相关的内容。谢谢,@TLama这非常有效,并允许我使用
ResultsPage.RichEditViewer.font.size:=9
。如果你加上这个作为回答,我可以接受。