Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
调试时,我总是希望 Delphi 在第二个监视器中打开我的应用程序,但它总是在第一个监视器中打开,我知道我可以在关闭之前保存应用程序放置,但我希望它在调试模式下始终在第二个监视器中打开。
有没有办法配置delphi 2009来做到这一点?
Delphi没有他的功能。
我所做的是将代码添加到主窗体的 OnCreate 处理程序,如果 Delphi-Debugger 连接到应用程序,则将窗体移动到第二个监视器。
if (DebugHook <> 0) and (Screen.MonitorCount > 1) then Left := Screen.Monitors[1].Left;