Damian Silent
Damian Silent

Reputation: 225

Change size of Inno Setup page name and description labels

I'm using this solution:
Display image in top panel of Inno Setup wizard instead of page title and description

And I want set parameters like this:

WizardForm.WizardSmallBitmapImage.Visible := False;
WizardForm.PageDescriptionLabel.Color := clBlack;
WizardForm.PageNameLabel.Color := clBlack;
WizardForm.PageDescriptionLabel.Font.Color := clWhite;
WizardForm.PageNameLabel.Font.Color := clWhite;

but... i don't know how to make black backgrounds shorter under title and description. As you can see black strips going on to the face. It is possible at all?

I want something like this:

look

Already i have this:

enter image description here

Upvotes: 3

Views: 1961

Answers (1)

Martin Prikryl
Martin Prikryl

Reputation: 202222

To change labels width use theirs .Width property.

procedure InitializeWizard();
begin
  // ...

  WizardForm.PageDescriptionLabel.Width :=
    WizardForm.PageDescriptionLabel.Width - ScaleX(120);

  WizardForm.PageNameLabel.Width :=
    WizardForm.PageNameLabel.Width - ScaleX(120);
end;

enter image description here


Or you can make the labels transparent:
Inno Setup - Transparency under text in page name and description labels

Upvotes: 3

Related Questions