Inno Setup - text transparency in page titles and description tags

I want to make transparency in the text here:

enter image description here

As you can see, I have a black background, which I do not want to have.

Hey.

+3
inno-setup
Sep 12 '17 at 13:49 on
source share
1 answer

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; 

enter image description here




It’s easier to change the background color of the shortcuts:
Inno Setup - Resize Page Titles and Descriptions

+2
Sep 12 '17 at 14:16
source share



All Articles