Changeset 497 for trunk


Ignore:
Timestamp:
Dec 18, 2023, 10:47:05 PM (11 months ago)
Author:
chronos
Message:
  • Fixed: Correction of StayOnTop restore method workaround.
Location:
trunk/Packages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/DrawDlg.pas

    r495 r497  
    196196  // Fix this to keep them visible.
    197197  if (TFormStateType.fsModal in FormState) and Visible then
    198     Application.RemoveStayOnTop(True);
     198    Application.RestoreStayOnTop(True);
    199199
    200200  MoveActive := False;
  • trunk/Packages/DpiControls/Dpi.Forms.pas

    r496 r497  
    193193    procedure CreateForm(InstanceClass: TComponentClass; out Reference);
    194194    procedure RemoveStayOnTop(const ASystemTopAlso: Boolean = False);
     195    procedure RestoreStayOnTop(const ASystemTopAlso: Boolean = False);
    195196    function MessageBox(Text, Caption: PChar; Flags: Longint = MB_OK): Integer;
    196197    property MainForm: TForm read GetMainForm write SetMainForm;
     
    470471end;
    471472
     473procedure TApplication.RestoreStayOnTop(const ASystemTopAlso: Boolean);
     474begin
     475  GetNativeApplication.RestoreStayOnTop(ASystemTopAlso);
     476end;
     477
    472478function TApplication.MessageBox(Text, Caption: PChar; Flags: Longint
    473479  ): Integer;
Note: See TracChangeset for help on using the changeset viewer.