DelphiVCL.Monitor or TMonitor represents a monitor on which an application runs.
DelphiVCL.Monitor represents a monitor that displays the user interface of an application. It introduces properties to describe the dimensions of a single monitor. In addition, the Primary property distinguishes the primary property from other monitors on the system.
When writing multi-monitor applications, use TMonitor to help lay out forms and dialogs so that they are not split over several monitors.
Applications do not create instances of TMonitor. Instead, monitor components for all available monitors are listed by the Monitors property of the global Screen variable. The global Screen variable also provides global information about the monitors on which the application runs, such as screen resolution, available fonts, and so on.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Monitor using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Monitor) |
See the responses in our Windows command prompt:
You can also read short informations about the DelphiVCL.Monitor using the print() command:
1 2 |
print(DelphiVCL.Monitor) print(DelphiVCL.Monitor.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.