Changeset 495


Ignore:
Timestamp:
Dec 17, 2023, 11:54:58 PM (12 months ago)
Author:
chronos
Message:
Location:
trunk/Packages
Files:
2 edited

Legend:

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

    r471 r495  
    193193procedure TDrawDlg.VisibleChangedHandler(Sender: TObject);
    194194begin
     195  // LCL hides all StayOnTop forms during ShowModal.
     196  // Fix this to keep them visible.
     197  if (TFormStateType.fsModal in FormState) and Visible then
     198    Application.RemoveStayOnTop(True);
     199
    195200  MoveActive := False;
    196201
  • trunk/Packages/DpiControls/Dpi.Forms.pas

    r473 r495  
    191191    procedure UpdateMainForm(AForm: TForm);
    192192    procedure CreateForm(InstanceClass: TComponentClass; out Reference);
     193    procedure RemoveStayOnTop(const ASystemTopAlso: Boolean = False);
    193194    function MessageBox(Text, Caption: PChar; Flags: Longint = MB_OK): Integer;
    194195    property MainForm: TForm read GetMainForm write SetMainForm;
     
    463464end;
    464465
     466procedure TApplication.RemoveStayOnTop(const ASystemTopAlso: Boolean);
     467begin
     468  GetNativeApplication.RemoveStayOnTop(ASystemTopAlso);
     469end;
     470
    465471function TApplication.MessageBox(Text, Caption: PChar; Flags: Longint
    466472  ): Integer;
Note: See TracChangeset for help on using the changeset viewer.