我正在使用 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/