2

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

Martin Prikryl
  • 167,268
  • 50
  • 405
  • 846
Damian Silent
  • 205
  • 3
  • 12
  • So do you want to change background color only? (black) Or do want to make the text background transparent? – Martin Prikryl Sep 12 '17 at 09:55
  • That does not make sense. So either the label background is transparent and image shows below it. Or the image is transparent and the labels show below it. But you cannot have both. – Martin Prikryl Sep 12 '17 at 10:13
  • Your screenshot should show what you want. And your question text should say it. Do not use comments to clarify the question. Edit the question. And it's no clear, what do you want to *"stretch"*. – Martin Prikryl Sep 12 '17 at 10:19
  • 1) Again, edit your question. Do not provide important information in comments. 2) So do you really need the label to be transparent? Or do you just need black background? – Martin Prikryl Sep 12 '17 at 10:32
  • I need black background but shorter like in this photo: http://i.imgur.com/lXysMZm.png – Damian Silent Sep 12 '17 at 10:48

1 Answers1

2

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

Martin Prikryl
  • 167,268
  • 50
  • 405
  • 846
  • Finally, that's what I meant :) But what about future projects? Really we can't make this background transparent? I saw in Graphical Installer - we can make this background transparent but i want clean installer without any modifications. – Damian Silent Sep 12 '17 at 11:13
  • Transparency is possible, but it's way more complicated - If you are interested in that, ask a new question. – Martin Prikryl Sep 12 '17 at 11:35