Inno Setup - Change size of page name and descript

2019-03-22 08:02发布

问题:

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:

Already i have this:

回答1:

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;


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



标签: inno-setup