delphi - HD Firemonkey 应用程序中 Screen.MonitorCount 的等效项是什么?

标签 delphi firemonkey delphi-xe4

我正在使用 XE4 并尝试确定 HD Firemonkey 应用程序中连接了多少台显示器。在 VCL 应用程序中,您可以从 Screen.MonitorCount 获取此信息。 Firemonkey 的等价物是什么?

最佳答案

据我所知,没有。有一个 previous SO question讨论这是您必须自己编写特定于平台的代码,并且 documentation明确表示多屏幕支持仅适用于 Windows(强调我的):

A global variable of type TScreen called Screen is created when you create a project. Screen encapsulates the state of the screen on which your application is running. Common tasks performed by Screen include specifying:

  • The look of the cursor.
  • The size of the window in which your application is running.
  • A list of fonts available to the screen device.
  • Multiple screen behavior (Windows only).

If your Windows application runs on multiple monitors, Screen maintains a list of monitors and their dimensions so that you can effectively manage the layout of your user interface.

关于delphi - HD Firemonkey 应用程序中 Screen.MonitorCount 的等效项是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18156555/

相关文章:

delphi - 使用一些行颜色扩展 DBGrid

json - 如何检查 SuperObject 中是否存在特定元素?

delphi - 使用多设备应用程序在 Delphi xe7 的状态栏中显示数据

ios - 如何设置TPanel透明?

delphi - 如何根据XE4中的值更改FMX.TGrid行的背景颜色

multithreading - Delphi:是否应该创建线程 "not suspended"?

delphi - 如何将文字竖线 "|"放入控件的 Hint 属性中?

ios - 如何让 TListBoxItem 的 ADetail 附件突出显示当前 TListBoxItem

mysql - 在数据库插入时发送电子邮件

ios - 在 ios 应用程序中打开 URL