Changeset 470 for trunk/Components/ControlsUtility.pas
- Timestamp:
- Mar 2, 2023, 1:57:29 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Components/ControlsUtility.pas
r464 r470 757 757 UseWidth: double; 758 758 UseHeight: double; 759 begin 759 InitW: longint; 760 InitH: longint; 761 begin 762 InitW := Form.Width; 763 InitH := Form.Height; 764 760 765 if ScaledForms.IndexOf( Form ) <> -1 then 761 766 // already scaled this form. … … 778 783 XFactor, 779 784 YFactor ); 785 786 // Adjust the bottom left position by half of the width/height increase 787 if Form.Position in [ poDefault, poDefaultPosOnly, poScreenCenter ] then 788 begin 789 Form.Left := Form.Left - (( Form.Width - InitW ) div 2 ); 790 Form.Bottom := Form.Bottom - (( Form.Height - InitH ) div 2 ); 791 end; 780 792 781 793 end;
Note:
See TracChangeset
for help on using the changeset viewer.