Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missaligned Cancel button (Inno Setup) #48

Open
Himeko7 opened this issue May 6, 2019 · 6 comments
Open

Missaligned Cancel button (Inno Setup) #48

Himeko7 opened this issue May 6, 2019 · 6 comments

Comments

@Himeko7
Copy link

Himeko7 commented May 6, 2019

Not sure if it's an issue with the new 6.x Inno Setup, the cancel button is missaligned with any skins:

2019-05-06 - 05 19 51 ~ Cropped Capture

@LoicFr
Copy link

LoicFr commented Nov 7, 2019

Hello, I confirm that this issue appears in Inno Setup 6 but not in Inno Setup 5. Did you manage to solve it ?

@Himeko7
Copy link
Author

Himeko7 commented Nov 7, 2019

I did a little trick

procedure CurPageChanged(CurPageID: Integer); begin WizardForm.CancelButton.Top := WizardForm.NextButton.Top; WizardForm.CancelButton.Left := WizardForm.NextButton.Left + WizardForm.NextButton.Width + 3;

@LoicFr
Copy link

LoicFr commented Nov 8, 2019

Thank you very much, by adding this code at the end of my Inno Setup script it indeed works well.

procedure CurPageChanged(CurPageID: Integer);
begin
  WizardForm.CancelButton.Top := WizardForm.NextButton.Top;
end;

@icegull
Copy link

icegull commented Feb 24, 2020

Thank you very much, by adding this code at the end of my Inno Setup script it indeed works well.

procedure CurPageChanged(CurPageID: Integer);
begin
  WizardForm.CancelButton.Top := WizardForm.NextButton.Top;
end;

Works well. Thank you very much.

@ajtruckle
Copy link

Thank you for providing this solution.

@hgdagon
Copy link

hgdagon commented Jul 14, 2021

Actually, at least in my case, this seems to work just fine:

<event('InitializeWizard')>
procedure InitializeWizardVCLStylesFix();
begin
  WizardForm.NextButton.Left := WizardForm.BackButton.Left + WizardForm.BackButton.Width + ScaleX(2);
  WizardForm.CancelButton.Left := WizardForm.NextButton.Left + WizardForm.NextButton.Width + ScaleX(3);
  WizardForm.CancelButton.Top := WizardForm.NextButton.Top;
end;

It seems like the other buttons' positioning is also slightly off, so that's accounted for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants