user1743927
user1743927

Reputation: 23

Inno Setup: Create simplified ComponentsList

I have only two components for a user to choose from when installing. Neither depends on each other, and none has any constraints. I’d like to present two simple checkboxes with no extra layout, instead of the complexity of TNewCheckListBox (i.e. ComponentsList). Is there a way to do this?

Here's an image of what I'm after:

Thanks for any help!

Upvotes: 1

Views: 446

Answers (1)

Martin Prikryl
Martin Prikryl

Reputation: 202474

Not sure what you mean by "complexity". If it's just about the list looking as a list box, what about styling it not to look like a list?

procedure InitializeWizard();
begin
  WizardForm.ComponentsList.BorderStyle := bsNone;
  WizardForm.ComponentsList.ParentColor := True;
  WizardForm.ComponentsList.Top := WizardForm.SelectComponentsLabel.Top;

  WizardForm.ComponentsDiskSpaceLabel.Visible := False;
  WizardForm.SelectComponentsLabel.Visible := False;
end;

Upvotes: 1

Related Questions