Ignore:
Timestamp:
Sep 15, 2024, 10:04:45 PM (2 months ago)
Author:
chronos
Message:
  • Modified: Show windows by default on primary screen if multiple monitors present.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Diagram.pas

    r550 r622  
    291291procedure TDiaDlg.FormShow(Sender: TObject);
    292292begin
    293   if WindowMode = wmModal then
    294   begin { center on screen }
    295     Left := (Screen.Width - Width) div 2;
    296     Top := (Screen.Height - Height) div 2;
    297   end;
     293  if WindowMode = wmModal then CenterToScreen;
    298294  OffscreenPaint;
    299295end;
Note: See TracChangeset for help on using the changeset viewer.