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

Legend:

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

    r620 r622  
    103103  TitleHeight := WideFrame;
    104104  ModalFrameIndent := 45;
    105   UserLeft := (Screen.Width - Width) div 2;
    106   UserTop := (Screen.Height - Height) div 2;
     105  UserLeft := Screen.PrimaryMonitor.Left + (Screen.PrimaryMonitor.Width - Width) div 2;
     106  UserTop := Screen.PrimaryMonitor.Top + (Screen.PrimaryMonitor.Height - Height) div 2;
    107107end;
    108108
Note: See TracChangeset for help on using the changeset viewer.