在第二台显示器上启动程序? [英] Start program on a second monitor?
问题描述
我正在为客户开发一个简单的程序,它显示了由酒店系统生成的辅助显示器上的厨房订单。目前他们需要手动将窗口拖动到第二台显示器上。
在程序关闭和恢复之前保存窗口位置他们在启动时。 Multimonitor显示器只是增加桌面的大小;其他显示器表面只有相同X / Y平面的不同部分,其原点位于主显示器的左上角。
可以为您自动完成几个组件中的任何一个。
BTW,Forms单元中的Screen变量有一个名为MonitorCount的属性,另一个可索引属性Monitors [Index:Integer]:TMonitor。 TMonitor具有指示左,上,宽,高等的属性,因此您需要的所有信息都在那里。
Is there a way to specify which monitor a application appears on in Delphi or C++Builder?
I am developing a simple program for a customer, which displays kitchen orders on a secondary monitor, generated by a hospitality system. Currently they need to manually drag the window onto the second monitor after it starts.
Save the window position before program shutdown and restore them on startup. Multimonitor displays just increase the size of the desktop; other monitor surfaces just have a different section of the same X/Y plane with its origin at the top-left of the primary monitor.
This can be done automatically for you by any of several components.
BTW, the Screen variable in the Forms unit has a property called MonitorCount and another indexable property, Monitors[Index: Integer]: TMonitor. TMonitor has properties indicating the left, top, width, height etc., so all the information you need is there.
这篇关于在第二台显示器上启动程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!