WindowsMonitorMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

WindowsMonitorMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Windows MBS Win Plugin 11.3 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The class to query monitor details on Windows.
Example
for each m as WindowsMonitorMBS in WindowsMonitorMBS.AllMonitors
MsgBox m.DeviceName+": "+str(m.Left)+"x"+str(m.top)+" "+str(m.Width)+"x"+str(m.Height)
next

Constants

Constant Value Description
kDefaultToNearest 2 One of the flag constants. Return the display monitor that is nearest to the window, point or rectangle.
kDefaultToNull 0 One of the flag constants. Returns nil if no monitor matches is located at point, window or rectangle.
kDefaultToPrimary 1 One of the flag constants. Returns the primary display monitor if point, rect or window does not point to a monitor.

This class has no sub classes.

Some examples using this class:

Blog Entries


The items on this page are in the following plugins: MBS Win Plugin.


WindowsMLExceptionMBS   -   WindowsMutexMBS


💬 Ask a question or report a problem