Goc*_*cha 5 delphi scripting pascal inno-setup
有人看过GOG.com游戏安装程序吗?如何在单个标题中创建包含路径和需要大小的欢迎文本字符串?部分是粗体的.
以下是修改安装路径后如何更改String换行的示例



RRU*_*RUZ 17
您可以使用属性TRichEditViewer设置RFTText和UseRichEditTrue.
试试这个样本
procedure CreateCustomPages;
var
Page : TWizardPage;
rtfHelpText : TRichEditViewer;
s: string;
begin
Page := CreateCustomPage(wpWelcome, 'Custom wizard page controls', 'Bold Demo');
Page.Surface.Align:=alCLient;
s:='{\rtf1\ansi\ansicpg1252\deff0\deflang13322{\fonttbl{\f0\fnil\fcharset0 Tahoma;}}'+
'\viewkind4\uc1\pard\f0\fs16 This is a normal text, \b and this is a bold text\b0\par}';
rtfHelpText := TRichEditViewer.Create(Page);
rtfHelpText.Parent := Page.Surface;
rtfHelpText.Left := 0;
rtfHelpText.Top := 0;
rtfHelpText.Width := Page.SurfaceWidth;
rtfHelpText.Height := Page.SurfaceHeight;
rtfHelpText.Scrollbars := ssVertical;
rtfHelpText.ReadOnly := True;
rtfHelpText.UseRichEdit := True;
rtfHelpText.RTFText := s;
end;
procedure InitializeWizard();
begin
CreateCustomPages();
end;
Run Code Online (Sandbox Code Playgroud)

| 归档时间: |
|
| 查看次数: |
1803 次 |
| 最近记录: |