Ignore:
Timestamp:
May 7, 2020, 7:05:57 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code in HighDPI branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Inp.pas

    r111 r193  
    77  ScreenTools, Messg,
    88  LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, DrawDlg,
    9   ButtonA, StdCtrls;
     9  ButtonA, StdCtrls, UDpiControls;
    1010
    1111type
     
    8888  EInput.SelLength := Length(EInput.Text);
    8989  if Center then
    90     CenterToRect(Rect(0, 0, Screen.Width, Screen.Height));
     90    CenterToRect(Rect(0, 0, DpiScreen.Width, DpiScreen.Height));
    9191end;
    9292
Note: See TracChangeset for help on using the changeset viewer.