PageNameLabel and PageDescriptionLabel are components of TNewStaticText . This component does not support transparency. Although the TLabel component, which has similar functionality, otherwise supports transparency ( only in the Unicode Inno Setup version ).
So, you can replace these two components with the equivalent TLabel . And then you need to make sure that the headers of your new custom components are updated when Inno Setup updates the original components. For these two components, this is pretty simple, as they only update when the page changes. This way you can update your custom components from the CurPageChanged event function .
function CloneStaticTextToLabel(StaticText: TNewStaticText): TLabel; begin Result := TLabel.Create(WizardForm); Result.Parent := StaticText.Parent; Result.Left := StaticText.Left; Result.Top := StaticText.Top; Result.Width := StaticText.Width; Result.Height := StaticText.Height; Result.AutoSize := StaticText.AutoSize; Result.ShowAccelChar := StaticText.ShowAccelChar; Result.WordWrap := StaticText.WordWrap; Result.Font := StaticText.Font; StaticText.Visible := False; end; var PageDescriptionLabel: TLabel; PageNameLabel: TLabel; procedure InitializeWizard(); begin { ... } { Create TLabel equivalent of standard TNewStaticText components } PageNameLabel := CloneStaticTextToLabel(WizardForm.PageNameLabel); PageDescriptionLabel := CloneStaticTextToLabel(WizardForm.PageDescriptionLabel); end; procedure CurPageChanged(CurPageID: Integer); begin { Update the custom TLabel components from the standard hidden components } PageDescriptionLabel.Caption := WizardForm.PageDescriptionLabel.Caption; PageNameLabel.Caption := WizardForm.PageNameLabel.Caption; end;

Itβs easier to change the background color of the shortcuts:
Inno Setup - Resize Page Titles and Descriptions
Martin Prikryl Sep 12 '17 at 14:16 2017-09-12 14:16
source share