I'm trying to get this Martin Prikryl code to work in my Setup: Long descriptions on Inno Setup components
But when I put WizardSizePercent=121
inside the [Setup]
section, the code works, but it has some problem that causes the components caption to be overlapped by the ComponentsList
.
And I tried to change the code below (The end of the original code) but it was no use. The only thing you can change by doing this is changing the height of the WizardForm.ComponentsList.Height
.
Can anyone help me with this?
procedure InitializeWizard();
begin
SetTimer(0, 0, 50, CreateCallback(@HoverTimerProc));
CompLabel := TLabel.Create(WizardForm);
CompLabel.Parent := WizardForm.SelectComponentsPage;
CompLabel.Left := WizardForm.ComponentsList.Left;
CompLabel.Width := WizardForm.ComponentsList.Width;
CompLabel.Height := ScaleY(32);
CompLabel.Top :=
WizardForm.ComponentsList.Top + WizardForm.ComponentsList.Height - CompLabel.Height;
CompLabel.AutoSize := False;
CompLabel.WordWrap := True;
WizardForm.ComponentsList.Height :=
WizardForm.ComponentsList.Height - CompLabel.Height - ScaleY(8);
end;