RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Forms.TMonitorDefaultTo Enumeration

TMonitorDefaultTo specifies which monitor to select when there is no match to the specified criteria.

Pascal
TMonitorDefaultTo = (
  mdNearest,
  mdNull,
  mdPrimary
);
C++
enum TMonitorDefaultTo {
  mdNearest,
  mdNull,
  mdPrimary
};

TMonitorDefaultTo indicates which monitor should be used when the selection criteria do not match any of the monitors in the system. It can have any of the following values.

Value 
Meaning 
mdNearest  
Choose the monitor that comes closest to matching the criteria (the monitor closest to a point, on which most of a rectangle lies etc).  
mdNull  
Do not select any monitor if the criteria can't be met. Use nil (Delphi) or NULL (C++) to indicate that no monitor could be found.  
mdPrimary  
Choose the primary monitor if no monitor matches the criteria.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!