Ignore:
Timestamp:
Apr 6, 2021, 8:11:02 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Merged trunk branch version r348 into highdpi branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Packages/DpiControls/UDpiControls.pas

    r308 r349  
    445445    procedure ScreenChanged; override;
    446446    function ControlCount: Integer;
     447    procedure SetFocus; virtual;
    447448    constructor Create(TheOwner: TComponent); override;
    448449    destructor Destroy; override;
     
    562563    property ModalResult: TModalResult read GetModalResult write SetModalResult;
    563564    function ShowModal: Integer; virtual;
     565    procedure SetFocus; override;
    564566    procedure Close;
    565567    function CloseQuery: boolean; virtual;
     
    29602962end;
    29612963
     2964procedure TDpiWinControl.SetFocus;
     2965begin
     2966  GetNativeWinControl.SetFocus;
     2967end;
     2968
    29622969constructor TDpiWinControl.Create(TheOwner: TComponent);
    29632970begin
     
    38503857begin
    38513858  Result := GetNativeForm.ShowModal;
     3859end;
     3860
     3861procedure TDpiForm.SetFocus;
     3862begin
     3863  GetNativeForm.SetFocus;
    38523864end;
    38533865
Note: See TracChangeset for help on using the changeset viewer.