Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct BeveledLabel position on UninstallProgressForm.
Delphi 11.3 has problems positioning anchored controls correctly if they are resized while the form has no handle. Here, the form had no handle while BeveledLabel.Caption was being assigned because TSetupForm.Create's Position property change triggers a RecreateWnd. Setting Position in the .dfm avoids that RecreateWnd. Later (not 6.4), the same change should be made to all of Setup's forms. It was only being set in code because D2 wouldn't write it in the .dfm.
- Loading branch information
1eaec50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Is this the same issue as for which I added this workaround a while ago:
issrc/Projects/Src/Setup.WizardForm.pas
Line 786 in 1eaec50
And if so, does it need a cleaner fix?
This code is also present in IDE.Wizard.WizardForm.pas.
1eaec50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's different. This issue seems to have been introduced in Delphi 11 (or 10.4?). I added a workaround to
SelectFolderForm
as well (the tree view control was the wrong size), and in that case, confirmed that it first started in IS 6.3.I suspect this issue is also what's causing the form designer to change the widths of right-anchored controls every time a form is opened. Hopefully Delphi 12 has a fix.
1eaec50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK thanks 👍