Changeset 470
- Timestamp:
- Mar 2, 2023, 1:57:29 AM (2 years ago)
- Location:
- trunk/Components
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Components/ACLDialogs.pas
r401 r470 356 356 procedure TACLQueryDialog.SetupShow; 357 357 begin 358 ScaleForm( self, 11, 16 );358 ScaleForm( self, 8, 16 ); 359 359 FOKButton.Default := true; 360 360 FEdit.Focus; -
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.