Example: Multi-Monitor Window Positioning
The IDL distribution contains example .pro code that illustrates how to use the IDLsysMonitorInfo object to position application windows on multiple monitors. With a little care, you can design the code to work on Windows, XINERAMA, and X Multi-Screen platforms and handle all monitor configurations.
The example code displays a simple splash screen in the middle of the primary monitor and opens a simple application GUI on the nth monitor in a system with n monitors.
Example Code
The application window positioning for multi-monitor example is included in the file multimon_ex1.pro in the examples/doc/utilities subdirectory of the IDL distribution. Run this example procedure by entering multimon_ex1 at the IDL command prompt or view the file in an IDL Editor window by entering .EDIT multimon_ex1.pro.